static void deleteKeysNotIn(Map map, Set set) { for (A key : cloneList(keys(map))) if (!set.contains(key)) map.remove(key); }