void () { KeyStroke keyStroke = KeymapUtil.getKeyStroke(IntentionPreviewPopupUpdateProcessor.Companion.getShortcutSet()); Action action = createAction(e -> maybeShowPreview()); ((WizardPopup)myListPopup).registerAction("showIntentionPreview", keyStroke, action); advertisePopup(myListPopup); }