static Pair mapPairForKey(Map map, A key) { B value = mapGet(map, key); ret value == null ?: pair(key, value); }