@Override
  protected void afterTemplateStart() {
    super.afterTemplateStart();
    TemplateState templateState = TemplateManagerImpl.getTemplateState(myEditor);
    if (templateState == null) return;

    TextRange currentVariableRange = templateState.getCurrentVariableRange();
    if (currentVariableRange == null) return;
    
    IntroduceParameterUsagesCollector.started.log(IntroduceParameterUsagesCollector.replaceAll.with(myReplaceChoice.isAll()));

    InlayPresentation presentation = IntroduceParameterHelperKt.
      createDelegatePresentation(templateState, JavaBundle.message("introduce.parameter.inlay.title.delegate"), isSelected -> {
        myPanel.myCbGenerateDelegate.setSelected(isSelected);
        if (isSelected) createDelegate(); else removeDelegate();
        updatePreview(templateState);
      });
    TemplateInlayUtil.createNavigatableButton(templateState, currentVariableRange.getEndOffset(), presentation);

    updatePreview(templateState);
  }
@Override
  protected void afterTemplateStart()