@Override
    public void visitAnonymousClass(@NotNull PsiAnonymousClass aClass) {
      super.visitAnonymousClass(aClass);
      if (aClass instanceof PsiEnumConstantInitializer) {
        return;
      }
      if (isVisibleHighlight(aClass)) {
        registerClassError(aClass);
      }
      else {
        final PsiElement lBrace = aClass.getLBrace();
        assert lBrace != null;
        int length = aClass.getStartOffsetInParent() + lBrace.getStartOffsetInParent();
        PsiElement newExpression = aClass.getParent();
        registerErrorAtOffset(newExpression, 0, length);
      }
    }
@Override
    public void visitAnonymousClass(@NotNull PsiAnonymousClass aClass)