void (List<LookupElement> result, PsiClass aClass) { for (PsiMember[] members : new PsiMember[][] {aClass.getMethods(), aClass.getFields(), aClass.getInnerClasses()}) { for (PsiMember member : members) { if (!member.isPhysical()) continue; String memberName = member.getName(); if (memberName == null) continue; Icon icon = member.getIcon(0); LookupElementBuilder element = LookupElementBuilder.create(memberName).withIcon(icon); result.add(element.withTailText(" in " + aClass.getContainingFile().getName(), true)); } } }