@Nullable
  private static String createActionText(@NotNull String actionId, @NotNull String href) {
    AnAction action = ActionManager.getInstance().getAction(actionId);
    if (action == null) return null;
    String text = action.getTemplateText();
    if (text == null) return null;
    HtmlChunk.Element shortcut = HtmlChunk.span("color:" + ColorUtil.toHtmlColor(UIUtil.getContextHelpForeground()))
      .addText(KeymapUtil.getFirstKeyboardShortcutText(action));
    return new HtmlBuilder().appendLink(href, text).append(" ").append(shortcut).toString();
  }
@Nullable
  private static String createActionText(@NotNull String actionId, @NotNull String href)