void (final int key, final V value) { final Collection<V> collection = myMap.get(key); if (collection == null) { final Collection<V> x = myCollectionFactory.get(); x.add(value); myMap.put(key, x); } else { collection.add(value); } }