docs: public static <R> R findResource(
  			ResourceBundle.Control control,
  			String fileName,
  			String fileExtension,
  			String localeToken,
  			Locale locale,
  			Function<String, R> function) {
  		Set<Locale> candidateLocales = new LinkedHashSet<>();
  		candidateLocales.addAll(control.getCandidateLocales("", locale));
  		Locale fallbackLocale = control.getFallbackLocale("", locale);
  		if (fallbackLocale != null) {
  			candidateLocales.addAll(control.getCandidateLocales("", fallbackLocale));
  		}
  		for (Locale candidateLocale : candidateLocales) {
  			String strLocale = control.toBundleName("", candidateLocale);
  			String prefix = fileName;
  			if (localeToken != null && !localeToken.isEmpty()) {
  				prefix = prefix.replaceAll(Pattern.quote(localeToken), Matcher.quoteReplacement(strLocale));
  			}
  			R result = function.apply(control.toResourceName(prefix + strLocale, fileExtension));
  			if (result != null) {
  				return result;
  			}
  		}
  		return null;
  	}