static S resolveKeyCI(Map map, S key) { if (map == null) null; if (map.containsKey(key)) ret key; ret first(keys(map), k -> eqic(key, k)); }