boolean (final PsiMethod method, final PsiMethod candidate) { if (method.getManager().areElementsEquivalent(method, candidate)) return false; if (!MethodSignatureUtil.areSignaturesEqual(method,candidate)) return false; final PsiClass candidateContainingClass = candidate.getContainingClass(); return candidateContainingClass.isInheritor(method.getContainingClass(), true); }