public @NotNull PsiClass create(PsiElementFactory factory, String name) {
    return switch (this) {
      case CLASS -> factory.createClass(name);
      case INTERFACE -> factory.createInterface(name);
      case ENUM -> factory.createEnum(name);
      case ANNOTATION -> factory.createAnnotationType(name);
      case RECORD -> factory.createRecord(name);
    };
  }
public @NotNull PsiClass create(PsiElementFactory factory, String name)