void (@NotNull StringBuilder sb, @Nullable String actionId, String key) { if (actionId == null) return; // action id is not set AnAction action = ActionManager.getInstance().getAction(actionId); if (action == null) return; // action is not exist String text = getPreferredShortcutText(action.getShortcutSet().getShortcuts()); if (StringUtil.isEmpty(text)) return; // action have no shortcuts sb.append("</p><p style='margin-top:8px;'><font"); if (!ExperimentalUI.isNewUI() || ApplicationManager.getApplication().isUnitTestMode()) { sb.append(" size='2'"); } sb.append(" color='#").append(toHex(CONTEXT_HELP_FOREGROUND)); sb.append("'>").append(LangBundle.message(key, text)).append("</font>"); }