private static @Nls String getCapitalizationName(Nls.Capitalization capitalization) {
    return switch (capitalization) {
      case Title -> JavaI18nBundle.message("capitalization.kind.title");
      case Sentence -> JavaI18nBundle.message("capitalization.kind.sentence");
      default -> throw new IllegalArgumentException();
    };
  }
private static @Nls String getCapitalizationName(Nls.Capitalization capitalization)