@Override
public <R extends MutableIntCollection> R collectInt(final IntFunction<? super T> intFunction, final R target)
{
if (target instanceof MutableIntBag)
{
final MutableIntBag targetBag = (MutableIntBag) target;
this.forEachWithOccurrences(new ObjectIntProcedure<T>()
{
public void value(T each, int occurrences)
{
targetBag.addOccurrences(intFunction.intValueOf(each), occurrences);
}
});
}
else
{