void (@NotNull Project project, PsiElement @NotNull [] elements, DataContext dataContext) { final PsiFile file = CommonDataKeys.PSI_FILE.getData(dataContext); final Editor editor = CommonDataKeys.EDITOR.getData(dataContext); doRefactor(project, elements[0], elements[elements.length - 1], editor, file, dataContext); }