void (@NotNull Project project, @NotNull PsiFile file, @Nullable Editor editor, @NotNull PsiElement startElement, @NotNull PsiElement endElement) { ActionContext context = ActionContext.from(editor, file).withElement(startElement); ModCommand command = myAction.perform(context); ModCommandExecutor.getInstance().executeInteractively(context, command, editor); }