public Versions intersect(Versions other) {
        short newLowest = lowest > other.lowest ? lowest : other.lowest;
        short newHighest = highest < other.highest ? highest : other.highest;
        if (newLowest > newHighest) {
            return Versions.NONE;
        }
        return new Versions(newLowest, newHighest);
    }
Return the intersection of two version ranges.

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