SONARJAVA-351 Migrate the check