docs: private static long end(Range<Long> range) {
          if (range.upperBoundType() == BoundType.OPEN) {
              return DiscreteDomain.longs().previous(range.upperEndpoint());
          } else {
              return range.upperEndpoint();
          }
      }