void () { 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)); }