private static void processDuplicates(@NotNull List<SimpleMatch> duplicates,
                                        @NotNull PsiElement replacement,
                                        @NotNull Editor editor) {
    ExtractMethodHelper.replaceDuplicates(replacement, editor, pair -> replaceElements(pair.first, pair.second.copy()), duplicates);
  }
private static void processDuplicates(@NotNull List<SimpleMatch> duplicates,
                                        @NotNull PsiElement replacement,
                                        @NotNull Editor editor)