presto-geospatial-toolkit/src/main/java/io/prestosql/geospatial/Rectangle.java/Rectangle/intersection
class Rectangle:    public Rectangle intersection(Rectangle other)
    {
        requireNonNull(other, "other is null");
        if (!intersects(other)) {
            return null;
        }

        return new Rectangle(max(this.xMin, other.xMin), max(this.yMin, other.yMin), min(this.xMax, other.xMax), min(this.yMax, other.yMax));
    }