static Pair mapEntryToPair(Map.Entry e) { ret e == null ?: pair(e.getKey(), e.getValue()); }