...
Again, Sonar has the tools for you to see these duplicated blocks.
Package Tangle Index
This metric tells you how many cycles exist between different Java packages. A cycle is defined as a circular dependency between two packages, one depending on the other and vice versa.
...