PsiElementVisitor () { return new ClassMemberReferencesVisitor(getClazz()) { @Override protected void visitClassMemberReferenceElement(PsiMember classMember, PsiJavaCodeReferenceElement classMemberReference) { if (!existsInSuperClass(classMember)) { myCollection.add(classMember); } } }; }