code: public GlobalizationPreferences setLocales(List<ULocale> inputLocales) {
          if (isFrozen()) {
              throw new UnsupportedOperationException("Attempt to modify immutable object");
          }
          locales = processLocales(inputLocales);
          return this;
      }
docs: Sets the language/locale priority list. If other information is
  not (yet) available, this is used to to produce a default value
  for the appropriate territory, currency, timezone, etc.  The
  user should be given the opportunity to correct those defaults
  in case they are incorrect.
  
  @param inputLocales list of locales in priority order, eg {"be", "fr"}
  for Breton first, then French if that fails.
  @return this, for chaining
  @hide draft / provisional / internal are hidden on Android