sS renderMultiSetAsLines_byPopularity(MultiSet ms, O... _) { optPar int padWidth = 6; optPar S connector = ": "; if (ms == null) ret "-"; new LS l; for (O o : ms.highestFirst()) l.add(lpad(padWidth, n2(ms.get(o))) + connector + str(o)); ret lines(l); } static S renderMultiSetAsLines_byPopularity(Iterable l, O... _) { ret renderMultiSetAsLines_byPopularity(toMultiSet(l), _); }