@Override
    protected void doExecute(@NotNull Editor editor, @Nullable Caret caret, DataContext dataContext) {
      TemplateState templateState = TemplateManagerImpl.getTemplateState(editor);
      assert templateState != null;
      CommandProcessor.getInstance().setCurrentCommandName(CodeInsightBundle.message("template.next.variable.command"));
      templateState.nextTab();
    }
@Override
    protected void doExecute(@NotNull Editor editor, @Nullable Caret caret, DataContext dataContext)