code: private void removeValuesForKey(Object key) {
      Collection<V> collection = Maps.safeRemove(map, key);
  
      if (collection != null) {
        int count = collection.size();
        collection.clear();
        totalSize -= count;
      }
    }
docs: Removes all values for the provided key.