Use Analyze | Locate Duplicates to find repetitive blocks of code in a single file, a project, a module, or a custom scope.