boolean (PsiMethod method) { for (final MemberInfo info : myMemberInfos) { if (info.getMember() instanceof PsiMethod) { if (MethodSignatureUtil.areSignaturesEqual(method, (PsiMethod)info.getMember())) return true; } else if (info.getMember() instanceof PsiClass && info.getOverrides() != null) { final PsiMethod methodBySignature = ((PsiClass)info.getMember()).findMethodBySignature(method, true); if (methodBySignature != null) { return true; } } } return false; }