@Override
    public void visitMethod(@NotNull PsiMethod method) {
      final PsiClass aClass = method.getContainingClass();
      if (aClass == null) {
        return;
      }
      if (method.getNameIdentifier() == null || !method.hasModifierProperty(PsiModifier.STATIC)) {
        return;
      }
      final PsiClass ancestorClass = aClass.getSuperClass();
      if (ancestorClass == null) {
        return;
      }
      final PsiMethod[] methods = ancestorClass.findMethodsBySignature(method, true);
      for (final PsiMethod testMethod : methods) {
        if (testMethod.hasModifierProperty(PsiModifier.STATIC) && !testMethod.hasModifierProperty(PsiModifier.PRIVATE)) {
          registerMethodError(method);
          return;
        }
      }
    }
@Override
    public void visitMethod(@NotNull PsiMethod method)