boolean (PsiMethod method, PsiMethod originalMethod, PsiElement[] allElementsToDelete) { PsiMethod[] methods = method.findSuperMethods(); for(PsiMethod superMethod: methods) { if (ArrayUtil.find(allElementsToDelete, superMethod) < 0 && !MethodSignatureUtil.isSuperMethod(originalMethod, superMethod)) { return true; } } return false; }