code: public List<ULocale> getLocales() {
          List<ULocale> result;
          if (locales == null) {
              result = guessLocales();
          } else {
              result = new ArrayList<ULocale>();
              result.addAll(locales);
          }
          return result;
      }
docs: Get a copy of the language/locale priority list
  
  @return a copy of the language/locale priority list.
  @hide draft / provisional / internal are hidden on Android