@Override
    public boolean contains(Object o) {
        if (o instanceof Integer) {
            int value = (Integer) o;
            return value >= from && value < to;
        }
        return false;
    }
Constructs a {@code RangeSet} with the specified range.

@param from      The starting value (inclusive) of the range.
@param to        The ending value (exclusive) of the range.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/RangeSet.java