IntentionPreviewInfo (@NotNull ActionContext context, @NotNull ModChooseAction target) { return target.actions().stream() .filter(action -> action.getPresentation(context) != null) .findFirst() .map(action -> action.generatePreview(context)) .orElse(IntentionPreviewInfo.EMPTY); }