public static void customizeSearchFieldLook(@NotNull SearchTextField searchTextField, boolean isAlwaysShown) {
    JBTextField textField = searchTextField.getTextEditor();

    if (ExperimentalUI.isNewUI()) {
      searchTextField.setBackground(JBUI.CurrentTheme.Popup.BACKGROUND);
      textField.setOpaque(false);
      textField.putClientProperty("TextFieldWithoutMargins", true);
      textField.putClientProperty(DarculaUIUtil.COMPACT_PROPERTY, true);
      textField.putClientProperty("TextField.NoMinHeightBounds", true);
      EmptyBorder outsideBorder = new EmptyBorder(JBUI.CurrentTheme.Popup.searchFieldBorderInsets());
      Border lineBorder = JBUI.Borders.customLine(JBUI.CurrentTheme.Popup.separatorColor(), 0, 0, 1, 0);
      searchTextField.setBorder(JBUI.Borders.compound(outsideBorder, lineBorder,
                                                                new EmptyBorder(JBUI.CurrentTheme.Popup.searchFieldInputInsets())));
      textField.setBorder(JBUI.Borders.empty());
    } else {
      if (isAlwaysShown) {
        searchTextField.setBorder(JBUI.Borders.customLine(JBUI.CurrentTheme.BigPopup.searchFieldBorderColor(), 1, 0, 1, 0));
        textField.setBorder(JBUI.Borders.empty());
      }
    }
    if (SystemInfo.isMac) {
      RelativeFont.TINY.install(searchTextField);
    }
  }
public static void customizeSearchFieldLook(@NotNull SearchTextField searchTextField, boolean isAlwaysShown)