protected void updateStep() {
    if (mySteps.isEmpty()) {
      return;
    }

    final Step step = mySteps.get(myCurrentStep);
    LOG.assertTrue(step != null);
    step._init();
    currentStepComponent = step.getComponent();
    LOG.assertTrue(currentStepComponent != null);
    showStepComponent(currentStepComponent);

    Icon icon = step.getIcon();
    if (icon != null) {
      myIcon.setIcon(icon);
      myIcon.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 8));
    }

    updateButtons();

    UiNotifyConnector.doWhenFirstShown(currentStepComponent, () -> {
      requestFocusTo(getPreferredFocusedComponent());
    });
  }
protected void updateStep()