void (List<String> list) { System.out.println(list.stream() .filter(x -> x != null) .flatMap(s -> (IntStream.range(0, 10).boxed().filter(Predicate.isEqual(s.length())))) .collect(Collectors.toList())); }