void () { myResultsList = createList(); mySearchField = createSearchField(); suggestionsPanel = createSuggestionsPanel(); myResultsList.setFocusable(false); myResultsList.setCellRenderer(createCellRenderer()); if (Registry.is("new.search.everywhere.use.editor.font")) { Font editorFont = EditorUtil.getEditorFont(); myResultsList.setFont(editorFont); } installScrollingActions(); JComponent header = createHeader(); JPanel topPanel = new JPanel(new BorderLayout()); topPanel.setOpaque(false); topPanel.add(header, BorderLayout.NORTH); topPanel.add(mySearchField, BorderLayout.SOUTH); new WindowMoveListener(this).installTo(topPanel); addToTop(topPanel); addToCenter(suggestionsPanel); if (ExperimentalUI.isNewUI()) { setBackground(JBUI.CurrentTheme.Popup.BACKGROUND); if (header.getBorder() == null) { header.setBorder( JBUI.Borders.compound(JBUI.Borders.customLine(JBUI.CurrentTheme.CustomFrameDecorations.separatorForeground(), 0, 0, 1, 0), new EmptyBorder(JBUI.CurrentTheme.ComplexPopup.headerInsets()))); } header.setBackground(JBUI.CurrentTheme.ComplexPopup.HEADER_BACKGROUND); myResultsList.setBackground(JBUI.CurrentTheme.Popup.BACKGROUND); } else { suggestionsPanel.setBorder(JBUI.Borders.customLine(JBUI.CurrentTheme.BigPopup.searchFieldBorderColor(), 1, 0, 0, 0)); setBackground(JBUI.CurrentTheme.BigPopup.headerBackground()); } getAccessibleContext().setAccessibleName(getAccessibleName()); }