private @NotNull TextFieldWithHistoryWithBrowseButton createShellPath() {
    TextFieldWithHistoryWithBrowseButton textFieldWithHistoryWithBrowseButton = new TextFieldWithHistoryWithBrowseButton();
    final TextFieldWithHistory textFieldWithHistory = textFieldWithHistoryWithBrowseButton.getChildComponent();
    textFieldWithHistory.setEditor(new BasicComboBoxEditor() {
      @Override
      protected JTextField createEditorComponent() {
        return new JBTextField();
      }
    });
    textFieldWithHistory.setHistorySize(-1);
    textFieldWithHistory.setMinimumAndPreferredWidth(0);
    SwingHelper.addHistoryOnExpansion(textFieldWithHistory, () -> {
      return detectShells();
    });
    return textFieldWithHistoryWithBrowseButton;
  }
private @NotNull TextFieldWithHistoryWithBrowseButton createShellPath()