boolean (PsiElement member) { if (member instanceof PsiField field) { final PsiClass containingClass = ((PsiField)member).getContainingClass(); if (myClass.isInheritor(containingClass, true)) return true; return doMemberInfosContain(field); } else if (member instanceof PsiMethod method) { final PsiClass currentSuperClass = myClass.getSuperClass(); if (currentSuperClass != null) { final PsiMethod methodBySignature = currentSuperClass.findMethodBySignature(method, true); if (methodBySignature != null) return true; } return doMemberInfosContain(method); } return false; }