public static @Nullable Language findRegisteredLanguage(@NotNull String langValueText) {
    Language language = Language.findLanguageByID(langValueText);
    if (language != null) {
      return language;
    }

    for (Language value : Language.getRegisteredLanguages()) {
      if (value.getID().equalsIgnoreCase(langValueText) || value.getDisplayName().equalsIgnoreCase(langValueText)) {
        return value;
      }
    }
    return null;
  }
public static @Nullable Language findRegisteredLanguage(@NotNull String langValueText)