In my code, I have a convention that duplicated pieces of code, or pieces that should be kept in sync, are annotated with a random unique ID. This makes it easy to find all related pieces. And the IDs survive moving the code around or even copying (that's why it's better than referring to code location). Example:
|