Returns a collector that only accumulates the elements matching the given predicate.
a predicate function
a downstream collector
the collector implementation