void (int key, Collection<V> values) { final Collection<V> collection = myMap.get(key); if (collection != null) { if (collection.removeAll(values)) { if (collection.isEmpty()) { myMap.remove(key); } } } }