public static boolean addShortcutText(String actionId, CompositeAppearance appearance) {
    Shortcut shortcut = KeymapUtil.getPrimaryShortcut(actionId);
    if (shortcut != null) {
      appearance.getEnding().addText(" (" + KeymapUtil.getShortcutText(shortcut) + ")", SimpleTextAttributes.GRAY_ATTRIBUTES);
      return true;
    } else return false;
  }
public static boolean addShortcutText(String actionId, CompositeAppearance appearance)