static long collectMinLong(Collection c, S field) { long x = Long.MAX_VALUE; for (O o : unnull(c)) { Long l = cast getOpt(o, field); if (l != null) x = min(x, l); } ret x; }