void (List<Integer> lst) { List<Integer> newLst = lst.stream() .filter(x -> x > 10) .map(x -> x + 2) .distinct() .sorted() .sorted(Comparator.<Integer>naturalOrder()) .peek(x-> System.out.println(x)) .limit(1) .skip(42) .collect(Collectors.toList()); }