intellij let me replace
myList.stream().peek(x -> System.out.println(x));
with
myList.stream().peek(System.out::println); ?
myList.stream().peek(System.out::println);