code: public static FormatOptions of(int flags, int width, int precision) {
      if (!checkFlagConsistency(flags, width != UNSET)) {
        throw new IllegalArgumentException("invalid flags: 0x" + Integer.toHexString(flags));
      }
      if ((width < 1 || width > MAX_ALLOWED_WIDTH) && width != UNSET) {
        throw new IllegalArgumentException("invalid width: " + width);
      }
      if ((precision < 0 || precision > MAX_ALLOWED_PRECISION) && precision != UNSET) {
        throw new IllegalArgumentException("invalid precision: " + precision);
      }
      return new FormatOptions(flags, width, precision);
    }
docs: Creates a options instance with the given values.