void (@NotNull RelativePoint relativePoint) { List<String> items = ((SearchEverywhereManagerImpl)SearchEverywhereManager.getInstance(myProject)).getHistoryItems(); if (items.isEmpty()) return; JBPopupFactory.getInstance().createPopupChooserBuilder(items) .setMovable(false) .setRequestFocus(true) .setItemChosenCallback(text -> { mySearchField.setText(text); mySearchField.selectAll(); }) .createPopup() .show(relativePoint); }