@Override
    public int hashCode() {
        return Objects.hash(lowest, highest);
    }
Return a new version range that trims some versions from this range, if possible.
We can't trim any versions if the resulting range would be disjoint.

Some examples:
1-4.trim(1-2) = 3-4
3+.trim(4+) = 3
4+.trim(3+) = none
1-5.trim(2-4) = null

@param other                 The other version range.
@return                      A new version range.
generator/src/main/java/org/apache/kafka/message/Versions.java