void (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); } } }