private static boolean isSuperMethod(PsiMethod method, PsiMethod movedMethod) { final PsiMethod[] superMethods = movedMethod.findSuperMethods(); for (PsiMethod testMethod : superMethods) { if (testMethod.equals(method)) { return true; } } return false; }