SONARJAVA-179 Enable the check in Sonar way