private static boolean checkWrongType(@NotNull PsiClass psiClass) {
    return psiClass.isInterface() || psiClass.isAnnotationType() || psiClass.isEnum() || psiClass.isRecord();
  }
private static boolean checkWrongType(@NotNull PsiClass psiClass)