long (List<Predicate<String>> predicates, List<String> strings) { long count = 0L; for (Predicate<String> pred : predicates) { if (pred != null) { for (String string : strings) { if (pred.test(string)) { count++; } } } } return count; }