void (@NotNull ReflectiveClass ownerClass, @NotNull String fieldName, @NotNull PsiElement context, @NotNull Consumer<? super LookupElement> result) { final PsiField field = ownerClass.getPsiClass().findFieldByName(fieldName, false); if (field != null) { final String typeText = getTypeText(field.getType()); final PsiElementFactory factory = JavaPsiFacade.getElementFactory(ownerClass.getPsiClass().getProject()); final PsiExpression expression = factory.createExpressionFromText(typeText + ".class", context); final String shortType = PsiNameHelper.getShortClassName(typeText); result.consume(lookupExpression(expression, IconManager.getInstance().getPlatformIcon(com.intellij.ui.PlatformIcons.Class), shortType + ".class", shortType)); } }