static A firstNotNull(Iterable it) { while (it.hasNext()) { A a = it.next(); if (a != null) ret a; } null; }