how to extract method for many duplicates in the same time

I succed in using extract method programatically but I would like to extract many duplicates in the same time, is there one who know how to do it? I use already hasDuplictaes but it does not work.

Please sign in to leave a comment.