void () { myPreviewPopupUpdateProcessor.show(); if (myListPopup instanceof ListPopupImpl listPopup) { JList<?> list = listPopup.getList(); if (list.getSelectedValue() instanceof IntentionActionWithTextCaching actionWithCaching) { updatePreviewPopup(actionWithCaching, list.getSelectedIndex()); } } }