Hi,
Thanks for finding the explanation in the documentation.
Currently, it seems that there is no way to fix this particular duplicate code so that SonarQube is happy.
Probably, I will add this file to sonar.cpd.exclusions parameter to ignore the duplicate checking during analysis.