static LPair collectTwoFieldsAsPair(fS fieldA, fS fieldB, Iterable l) { ret map(l, func(C c) -> Pair { pair((A) getOpt(c, fieldA), (B) getOpt(c, fieldB)) }); }