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