Can anyone please explain me why this is duplicated code? It does not reference another file or anything and the code here is not duplicated.
The code is not the same in this file and it does not refer to another file. I suspect that it probably found some duplicate code somewhere else but its maybe ignore, so it doesn’t show the file. But this is just a hypothesis.
Duplication Detection ignores string literals. Therefore I would guess that the duplication being detected is on the same file (take out all the string literals, you’re left with basically the same constructs.