void (Stream<List<Integer>> stream) { final Iterator<Integer> x = concat(stream .map(cs -> cs.iterator()) .collect(Collectors.toList()).iterator()); final Iterator<Integer> x1 = concat(stream .map(List::iterator) .collect(Collectors.toList()).iterator()); }