private AnAction @NotNull [] computeChildren() {
    List<WebBrowser> browsers = WebBrowserManager.getInstance().getBrowsers();
    boolean addDefaultBrowser = isPopup();
    boolean hasLocalBrowser = hasLocalBrowser();
    int offset = 0;
    if (addDefaultBrowser) offset++;
    if (hasLocalBrowser) offset++;
    AnAction[] actions = new AnAction[browsers.size() + offset];

    if (hasLocalBrowser) {
      actions[0] = new OpenHtmlInEmbeddedBrowserAction();
    }

    if (addDefaultBrowser) {
      OpenFileInDefaultBrowserAction defaultBrowserAction = new OpenFileInDefaultBrowserAction();
      defaultBrowserAction.getTemplatePresentation().setText(IdeBundle.messagePointer("default"));
      defaultBrowserAction.getTemplatePresentation().setIconSupplier(() -> AllIcons.Nodes.PpWeb);
      actions[hasLocalBrowser ? 1 : 0] = defaultBrowserAction;
    }

    for (int i = 0, size = browsers.size(); i < size; i++) {
      actions[i + offset] = new BaseOpenInBrowserAction(browsers.get(i));
    }
    return actions;
  }
private AnAction @NotNull [] computeChildren()