public List<Content> getPopupContents() {
    if (myOriginal != null) return myOriginal.getPopupContents();

    List<Content> contents = new ArrayList<>(Arrays.asList(myManager.getContents()));
    myChildren.stream()
      .flatMap(child -> Arrays.stream(child.myManager.getContents()))
      .forEachOrdered(contents::add);

    RunContentManager contentManager = RunContentManager.getInstance(myProject);
    RunContentDescriptor selectedDescriptor = contentManager.getSelectedContent();
    Content selectedContent;
    if (selectedDescriptor != null) {
      selectedContent = selectedDescriptor.getAttachedContent();
    }
    else {
      selectedContent = null;
    }

    ToolWindow debugToolwindow = ToolWindowManager.getInstance(myProject).getToolWindow(ToolWindowId.DEBUG);
    if (debugToolwindow != null) {
      for (Content content : debugToolwindow.getContentManager().getContents()) {
        if (content != selectedContent) {
          contents.add(content);
        }
      }
    }
    return contents;
  }
public List<Content> getPopupContents()