@Override
    public String toString() {
        if (min == max) {
            return String.valueOf(min);
        } else if (max == Short.MAX_VALUE) {
            return String.valueOf(min) + "+";
        } else {
            return String.valueOf(min) + "-" + String.valueOf(max);
        }
    }
Check if a given version range has overlap with this one
metadata/src/main/java/org/apache/kafka/metadata/VersionRange.java