void (@NotNull LightweightWindowEvent event) { Object selectedValue = list == null ? null : list.getList().getSelectedValue(); if (selectedValue instanceof IntentionActionWithTextCaching actionWithTextCaching) { highlightOnHover(actionWithTextCaching, context, popup); } }