@SafeVarargs
    public static <T extends Comparable<T>> SortedSet<T> mkSortedSet(T... elems) {
        SortedSet<T> result = new TreeSet<>();
        for (T elem : elems)
            result.add(elem);
        return result;
    }
Creates a sorted set
@param elems the elements
@param <T> the type of element, must be comparable
@return SortedSet
clients/src/main/java/org/apache/kafka/common/utils/Utils.java