@Override
  public @NotNull ActionCallback removeContent(@NotNull Content content, boolean dispose, boolean requestFocus, boolean forcedFocus) {
    ActionCallback result = new ActionCallback();
    doRemoveContent(content, dispose).doWhenDone(() -> {
      if (requestFocus) {
        Content current = getSelectedContent();
        if (current == null) {
          ToolWindowManager.getInstance(myProject).activateEditorComponent();
          result.setDone();
        }
        else {
          setSelectedContent(current, true, true, !forcedFocus).notify(result);
        }
      }
      else {
        result.setDone();
      }
    });

    return result;
  }
@Override
  public @NotNull ActionCallback removeContent(@NotNull Content content, boolean dispose, boolean requestFocus, boolean forcedFocus)