long (List<String> list) { return list.stream().filter(l -> l != null).peek(lst -> (new Consumer<String>() { String list = "hello"; public void accept(String list) {System.out.println(this.list+ lst);} }).accept(lst)).count(); }