static void putMultipleKeys(Map map, Collection keys, B value) { if (map == null || keys == null) ret; for (A key : keys) map.put(key, value); }