static bool containsAnyKeyExcept(Map map, Set allowedKeys) { if (map != null) for (A x : keys(map)) if (!contains(allowedKeys, x)) true; false; }