public boolean contains(short version) {
        return version >= min && version <= max;
    }
Check if a given version is fully contained within this range
metadata/src/main/java/org/apache/kafka/metadata/VersionRange.java