code: public static <T> Map<Boolean, List<T>>
      partitionBy(Collection<T> collection, Predicate<T> predicate) {
          return collection.stream().collect(partitioningBy(predicate));
      }
docs: Partition by map.
  
  @param <T>        the type parameter
  @param collection the collection
  @param predicate  the predicate
  @return the map