SONAR-5389 Improve duplication API