public void createOrSelectContent() {
    ToolWindow toolWindow = getToolWindow(myVcs.getProject());
    ContentManager manager = toolWindow.getContentManager();
    boolean selectedExistingContent = ContentUtilEx.selectContent(manager, myContentPanel, true);
    if (!selectedExistingContent) {
      String tabName = getTabName(myPath, myStartingRevisionNumber);
      ContentUtilEx.addTabbedContent(manager, myContentPanel, "History",
                                     VcsBundle.messagePointer("file.history.tab.name"), () -> tabName,
                                     true, this);
    }
    toolWindow.activate(null);
  }
public void createOrSelectContent()