static A firstThat(Collection l, O pred) { for (A a : unnull(l)) if (checkCondition(pred, a)) ret a; null; }