SONARJAVA-346 Migrate the check