docs: private List<CmsSelectWidgetOption> getLanguages() {
  
          List<CmsSelectWidgetOption> locales = new ArrayList<CmsSelectWidgetOption>();
  
          Locale defLocale = null;
          if ((m_user != null) && CmsStringUtil.isNotEmptyOrWhitespaceOnly(m_user.getName())) {
              defLocale = new CmsUserSettings(m_user).getLocale();
          }
          if (defLocale == null) {
              defLocale = getCms().getRequestContext().getLocale();
          }
  
          Iterator<Locale> itLocales = OpenCms.getLocaleManager().getAvailableLocales().iterator();
          while (itLocales.hasNext()) {
              Locale locale = itLocales.next();
              boolean selected = locale.equals(defLocale);
              locales.add(
                  new CmsSelectWidgetOption(locale.toString(), selected, locale.getDisplayName(getLocale()), null));
          }
          return locales;
      }