private static @NlsSafe String getLocaleText(Locale locale) {
    return locale.getDisplayName().isEmpty() ? UIDesignerBundle.message("choose.locale.default") : locale.getDisplayName();
  }
private static @NlsSafe String getLocaleText(Locale locale)