docs: public void setBidiGlobalDir(int bidiGlobalDir) {
      Preconditions.checkArgument(
          bidiGlobalDir >= -1 && bidiGlobalDir <= 1,
          "bidiGlobalDir must be 1 for LTR, or -1 for RTL (or 0 to leave unspecified).");
      Preconditions.checkState(
          !useGoogIsRtlForBidiGlobalDir || bidiGlobalDir == 0,
          "Must not specify both bidiGlobalDir and useGoogIsRtlForBidiGlobalDir.");
      this.bidiGlobalDir = bidiGlobalDir;
    }