PsiMethod (PsiMethod method) { final PsiMethod[] superMethods = method.findSuperMethods(); for (PsiMethod superMethod : superMethods) { PsiClass containingClass = superMethod.getContainingClass(); if (InheritanceUtil.isInheritorOrSelf(myBaseClass, containingClass, true)) { String qName = containingClass.getQualifiedName(); if (!CommonClassNames.JAVA_LANG_OBJECT.equals(qName)) { return superMethod; } } } return null; }