Replace calls to deprecated SonarQube APIs