public void apply() {
    var blockTerminalSetting = Registry.get(LocalBlockTerminalRunner.BLOCK_TERMINAL_REGISTRY);
    if (blockTerminalSetting.asBoolean() != myNewUiCheckbox.isSelected()) {
      blockTerminalSetting.setValue(myNewUiCheckbox.isSelected());
      TerminalUsageTriggerCollector.triggerBlockTerminalSwitched$intellij_terminal(myProject, myNewUiCheckbox.isSelected(),
                                                                                   BlockTerminalSwitchPlace.SETTINGS);
      if (!myNewUiCheckbox.isSelected()) {
        ApplicationManager.getApplication().invokeLater(() -> {
          BlockTerminalFeedbackSurveyKt.showBlockTerminalFeedbackNotification(myProject);
        }, ModalityState.nonModal());
      }
    }
    myBlockTerminalOptions.setPromptStyle(getSelectedPromptStyle());
    myProjectOptionsProvider.setStartingDirectory(myStartDirectoryField.getText());
    myProjectOptionsProvider.setShellPath(myShellPathField.getText());
    myOptionsProvider.setTabName(myTabNameTextField.getText());
    myOptionsProvider.setCloseSessionOnLogout(myCloseSessionCheckBox.isSelected());
    myOptionsProvider.setMouseReporting(myMouseReportCheckBox.isSelected());
    myOptionsProvider.setAudibleBell(mySoundBellCheckBox.isSelected());
    myOptionsProvider.setCopyOnSelection(myCopyOnSelectionCheckBox.isSelected());
    myOptionsProvider.setPasteOnMiddleMouseButton(myPasteOnMiddleButtonCheckBox.isSelected());
    myOptionsProvider.setOverrideIdeShortcuts(myOverrideIdeShortcuts.isSelected());
    myOptionsProvider.setShellIntegration(myShellIntegration.isSelected());
    myOptionsProvider.setHighlightHyperlinks(myHighlightHyperlinks.isSelected());
    myOptionsProvider.setUseOptionAsMetaKey(myUseOptionAsMetaKey.isSelected());
    myConfigurables.forEach(c -> {
      try {
        c.apply();
      }
      catch (ConfigurationException e) {
        //pass
      }
    });
    myProjectOptionsProvider.setEnvData(myEnvVarField.getData());
    myOptionsProvider.setCursorShape(ObjectUtils.notNull(myCursorShape.getItem(), TerminalUiSettingsManager.CursorShape.BLOCK));
  }
public void apply()