Fix some quality flaws
SONARJAVA-438 Do not use project.getLanguageKey()