public static List<String> getOrderedLanguageKeys(Languages languages) {
    Language[] all = languages.all();
    return Arrays.stream(all)
      .map(Language::getKey)
      .sorted()
      .toList();
  }
@Test
  public void getOrderedLanguageKeys() {
    assertThat(LanguageParamUtils.getOrderedLanguageKeys(new Languages())).isEmpty();

    Languages languages = new Languages(
      new TestLanguage("java"),
      new TestLanguage("abap"),
      new TestLanguage("js"),
      new TestLanguage("cobol"));
    assertThat(LanguageParamUtils.getOrderedLanguageKeys(languages)).containsExactly("abap", "cobol", "java", "js");
  }