static bool containsKeysExcept(Map map, Set set) { if (map != null) for (A a : keys(map)) if (!contains(set, a)) true; false; }