use of com.intellij.ide.TypePresentationService in project intellij-community by JetBrains.
the class ElementPresentationManager method getIconsForClass.
@Nullable
private static Icon[] getIconsForClass(final Class clazz, @Nullable Object o) {
TypePresentationService service = TypePresentationService.getService();
final Icon icon = o == null ? service.getTypeIcon(clazz) : service.getIcon(o);
if (icon != null) {
return new Icon[] { icon };
}
return null;
}
Aggregations