boolean (@NotNull PsiElement element, @NotNull ResolveState state) { if (myManager.areElementsEquivalent(element, myMember)) { myResult = true; return false; } if (myMember instanceof PsiMethod) { PsiMethod[] methods = ((PsiMethod)myMember).findSuperMethods(); for (PsiMethod method: methods) { if (myManager.areElementsEquivalent(element, method)) { myResult = true; return false; } } } return true; }