Re: False positives?
It's looking at code you paste in, and comparing it to other code within your code base. Where it finds a match, it suggests that instead of copy/pasting the code multiple times you apply software engineering basics and create a callable method.
I thought Jetbrains' tools already had smarts to highlight potentially duplicate code? (I'm sure I've seen a suggestion along similar lines in some of my projects already)