See SonarQube's comment on Patch set 1 of https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/606518/