static <A, B> void mapRemoveAll(Map<A, B> map, A... keys) { if (map != null) for (A a : keys) map.remove(a); }