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