void (List<String> list, Set<String> set, Iterable<String> it) { if(list.stream().al<caret>lMatch(set::contains)) { System.out.println("all matched"); } if(set.stream().allMatch(x -> list.contains(x))) { System.out.println("all matched"); } if(set.stream()./*one*/allMatch(((Collection<String>/*two*/)it)::contains)) { System.out.println("all matched"); } }