code: public static Multimap<Extract, WorkUnitState> getExtractsForPredicate(
        Multimap<Extract, WorkUnitState> extractToWorkUnitStateMap, Predicate<WorkUnitState> predicate) {
      Multimap<Extract, WorkUnitState> successfulExtracts = ArrayListMultimap.create();
      for (Map.Entry<Extract, Collection<WorkUnitState>> entry : extractToWorkUnitStateMap.asMap().entrySet()) {
        if (Iterables.all(entry.getValue(), predicate)) {
          successfulExtracts.putAll(entry.getKey(), entry.getValue());
        }
      }
      return successfulExtracts;
    }
docs: Given a {@link Multimap} of {@link Extract}s to {@link WorkUnitState}s, filter out any {@link Extract}s where all
  of the corresponding {@link WorkUnitState}s do not meet the given {@link Predicate}.