Icon (@NotNull PsiReference reference) { PsiElement resolved = reference.resolve(); if (!(resolved instanceof PsiField)) { return null; } UField field = UastContextKt.toUElement(resolved, UField.class); assert field != null; UExpression expression = field.getUastInitializer(); if (expression == null) { return null; } ProjectIconsAccessor iconsAccessor = ProjectIconsAccessor.getInstance(resolved.getProject()); VirtualFile iconFile = iconsAccessor.resolveIconFile(expression); return iconFile == null ? null : iconsAccessor.getIcon(iconFile); }