code review; adapted to IDEA API change (Predicate -> Condition)