@Override
    public void visitAnonymousClass(
      @NotNull PsiAnonymousClass aClass) {
      if (aClass instanceof PsiEnumConstantInitializer) {
        return;
      }
      final int totalMethodCount = calculateTotalMethodCount(aClass);
      if (totalMethodCount <= getLimit()) {
        return;
      }
      registerClassError(aClass, Integer.valueOf(totalMethodCount));
    }
@Override
    public void visitAnonymousClass(
      @NotNull PsiAnonymousClass aClass)