static Pair multiSetTopPair(MultiSet ms) { if (empty(ms)) null; A a = ms.getMostPopularEntry(); ret pair(a, ms.get(a)); }