int (final PsiMethod method, final Collection<? extends PsiClass> containingClassInheritors) { int counter = 0; for (final PsiClass inheritor : containingClassInheritors) { if (inheritor instanceof PsiExtensibleClass) { final List<PsiMethod> ownMethods = ((PsiExtensibleClass)inheritor).getOwnMethods(); for (PsiMethod ownMethod : ownMethods) { if (maybeSuper(method, ownMethod)) { counter++; break; } } } } return counter; }