void (K key, Collection<V> values) { try { final Collection<V> collection = myCache.get(key); if (collection != NULL_COLLECTION) { if (collection.removeAll(values)) { myCache.remove(key); if (collection.isEmpty()) { myMap.remove(key); } else { myMap.put(key, collection); } } } } catch (IOException e) { throw new BuildDataCorruptedException(e); } }