void (List<String> data) { List<String> xyz = MyStream.of(data) .flatMap(s -> Stream.of(s, s + s)).takeWhile(s -> !s.isEmpty()) .dropWhile(s -> s.length() < 3).col<caret>lect(Collectors.toList()); System.out.println(xyz); }