public List<T> toList() {
        List<T> list = new ArrayList<>();
        reverseForEach(list::add);
        Collections.reverse(list);
        return list;
    }
Reverse iterate the list

@param func accept a list element, return break loop mark.
metadata/src/main/java/org/apache/kafka/image/DeltaList.java