void () { myStartDirectoryField.addBrowseFolderListener( "", TerminalBundle.message("settings.start.directory.browseFolder.description"), null, FileChooserDescriptorFactory.createSingleFolderDescriptor(), TextComponentAccessor.TEXT_FIELD_WHOLE_TEXT ); setupTextFieldDefaultValue(myStartDirectoryField.getTextField(), () -> myProjectOptionsProvider.getDefaultStartingDirectory()); }