void () { myShellPathField.addBrowseFolderListener( "", TerminalBundle.message("settings.terminal.shell.executable.path.browseFolder.description"), null, FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor(), TextComponentAccessors.TEXT_FIELD_WITH_HISTORY_WHOLE_TEXT ); setupTextFieldDefaultValue(myShellPathField.getChildComponent().getTextEditor(), () -> myProjectOptionsProvider.defaultShellPath()); }