class X { void test(List list) { list.stream() .map(x -> x) .collect(toList()); } }