Icon () { for (IconProvider iconProvider : IconProvider.EXTENSION_POINT_NAME.getIterable()) { if (iconProvider instanceof PomIconProvider) { Icon icon = ((PomIconProvider)iconProvider).getIcon(myTarget, 0); if (icon != null) { return icon; } } } Icon icon = TypePresentationService.getService().getIcon(myTarget); if (icon != null) return icon; if (myTarget instanceof PsiTarget) { return ((PsiTarget)myTarget).getNavigationElement().getIcon(0); } return null; }