class CollectionFunctions {

    public static <T, S> void zipWithIndex(List<T> list1, List<S> list2, TriConsumer<T, S, Integer> consumer) {
        forEachWithIndex(list1, (i, item1) -> consumer.accept(item1, list2.get(i), i));
    }

    private  CollectionFunctions();

}