Refactor checks on for loops
SONARJAVA-797 Update rule title and description