code: public Set<Locale> getAllowedJavaLocales() {
          HashSet<Locale> locales = new HashSet<Locale>(fAllowedLocales.size());
          for (ULocale uloc : fAllowedLocales) {
              locales.add(uloc.toLocale());
          }
          return locales;
      }
docs: Get a set of {@link java.util.Locale} instances for the scripts that are acceptable in strings to be checked. If
  no limitations on scripts have been specified, an empty set will be returned.
  
  @return A set of locales corresponding to the acceptable scripts.