Collector.of() should not use state

See: https://errorprone.info/bugpattern/CollectorShouldNotUseState