void (boolean async, @NotNull SearchPopupCallback callback) { ColoredListCellRenderer renderer = new ColoredListCellRenderer() { @Override protected void customizeCellRenderer(@NotNull JList list, Object value, int index, boolean selected, boolean hasFocus) { append((String)value); } }; myPopup.createAndShow(callback, renderer, async); }