code: private void removeValue(TreeMultimap<Long, Long> mm, long value) {
          Iterator<Map.Entry<Long, Long>> itr = mm.entries().iterator();
          while (itr.hasNext()) {
              Map.Entry<Long,Long> e = itr.next();
              if (e.getValue().equals(value)) {
                  itr.remove();
              }
          }
      }
docs: Convenience method that remove all instances of the given value
  from the given map
  @param mm a multimap
  @param value a value that needs to be removed