docs: static BidiGlobalDir getBidiGlobalDir(String localeString) {
      boolean isRtl;
      try {
        isRtl =
            localeString != null
                && (BidiUtils.isRtlLanguage(localeString)
                    || FAKE_RTL_LOCALES_PATTERN.matcher(localeString).matches());
      } catch (IllegalArgumentException localeException) {
        isRtl = false;
      }
      return BidiGlobalDir.forStaticIsRtl(isRtl);
    }