static bool isTreeMap(Map m) { ret m instanceof TreeMap && ((TreeMap) m).comparator == String.CASE_INSENSITIVE_ORDER; }