@Override
    public void visitClass(@NotNull PsiClass aClass) {
      if (aClass.isInterface() || aClass.isEnum() || aClass.isRecord()) {
        return;
      }
      if (aClass instanceof PsiAnonymousClass || aClass instanceof PsiTypeParameter) {
        return;
      }
      if (classHasNoArgConstructor(aClass, m_ignoreClassesWithNoConstructors)) {
        return;
      }
      registerClassError(aClass);
    }
@Override
    public void visitClass(@NotNull PsiClass aClass)