Providing a list of statements will be a bit more complex for a plugin but will lead to get less false-positives.
Ability for a Sensor to provide duplication tokens
Use new extension point for cross project duplication detection
Deprecate CPDMapping extension point
Remove the support of PMD CPD
Allow language plugins to provide tokens used by CPD in a single pass