SONARJAVA-575 RSPEC-1849 "Iterator.hasNext()" should not call "Iterator.next()"