void (List<String> list) { if(list.stream().filter(x -> x != null).an<caret>yMatch(x -> x.startsWith("x"))) { System.out.println("Ok!"); } if(list.size() > 2 && list.stream().filter(x -> x != null).anyMatch(x -> x.startsWith("x"))) { System.out.println("Ok!"); } if(list.size() > 2 && list.stream().filter(x -> x != null).anyMatch(x -> x.startsWith("x")) && list.size() < 10) { System.out.println("Ok!"); } if(list.size() > 2 || list.stream().filter(x -> x != null).anyMatch(x -> x.startsWith("x"))) { // not supported System.out.println("Ok!"); } }