void () { List<XExpression> expressions = getRecentExpressions(); if (!expressions.isEmpty()) { ListPopupImpl historyPopup = new ListPopupImpl(getProject(), new BaseListPopupStep<>(null, expressions) { @Override public PopupStep onChosen(XExpression selectedValue, boolean finalChoice) { setExpression(selectedValue); requestFocusInEditor(); return FINAL_CHOICE; } }) { @Override protected ListCellRenderer getListElementRenderer() { return SimpleListCellRenderer.create("", XExpression::getExpression); } }; historyPopup.getList().setFont(EditorUtil.getEditorFont()); historyPopup.showUnderneathOf(getEditorComponent()); } }