public static Uuid[] toArray(List<Uuid> list) {
        if (list == null) return null;
        Uuid[] array = new Uuid[list.size()];
        for (int i = 0; i < list.size(); i++) {
            array[i] = list.get(i);
        }
        return array;
    }
Convert a list of Uuid to an array of Uuid.

@param list          The input list
@return              The output array
clients/src/main/java/org/apache/kafka/common/Uuid.java