void (@NotNull Editor editor) { String hintText = StringUtil.join(Arrays.asList(createActionText(ACTION_EXPAND_REGION, "expand"), createActionText(ACTION_EDIT_PROPERTY_VALUE, "edit")), "&nbsp;&nbsp;&nbsp;&nbsp;"); if (hintText.isEmpty()) return; JComponent component = HintUtil.createInformationLabel("<html>" + hintText, new HyperlinkListener() { @Override public void hyperlinkUpdate(HyperlinkEvent e) { if (e.getEventType() != HyperlinkEvent.EventType.ACTIVATED) return; String actionId = switch (e.getDescription()) { case "expand" -> ACTION_EXPAND_REGION; case "edit" -> ACTION_EDIT_PROPERTY_VALUE; default -> null; }; if (actionId != null) { AnAction action = ActionManager.getInstance().getAction(actionId); if (action != null) { ActionUtil.invokeAction(action, editor.getContentComponent(), ActionPlaces.UNKNOWN, e.getInputEvent(), null); } } } }, null, null); showTooltip(editor, component, false); }