Icon (PsiField field, @NotNull String iconPath) { UField uField = UastContextKt.toUElement(field, UField.class); assert uField != null; UExpression expression = uField.getUastInitializer(); if (expression == null) { return IconLoader.findIcon(iconPath, IconPsiReferenceBase.class, false, false); } ProjectIconsAccessor iconsAccessor = ProjectIconsAccessor.getInstance(field.getProject()); VirtualFile iconFile = iconsAccessor.resolveIconFile(expression); return iconFile == null ? null : iconsAccessor.getIcon(iconFile); }