docs: static void checkTolerance(double tolerance) {
      checkArgument(!Double.isNaN(tolerance), "tolerance cannot be NaN");
      checkArgument(tolerance >= 0.0, "tolerance (%s) cannot be negative", tolerance);
      checkArgument(
          doubleToLongBits(tolerance) != NEG_ZERO_BITS,
          "tolerance (%s) cannot be negative",
          tolerance);
      checkArgument(tolerance != Double.POSITIVE_INFINITY, "tolerance cannot be POSITIVE_INFINITY");
    }