Fixed WriteOnlyCollection Detector.

Hello Dave Brosius.

I tried to fix WriteOnlyCollection Detector because false positives.

Thanks.