boolean (@NotNull BiPredicate<? super ProjectTask, ? super ProjectTaskState> predicate) { return myTasksState.entrySet().stream().anyMatch(entry -> predicate.test(entry.getKey(), entry.getValue())); }