sometimes copypasta makes sense when you're developing, but not in production. It might be nicer to simply have the tool add appropriate code comments when it finds things, like
"// TODO: refactor, duplicate code file1.java:342 file2.jave:189"
or something similar.