static L multiSetSingletons(MultiSet ms) { ret ms == null ? null : filter(ms.asSet(), a -> ms.get(a) == 1); }