private static void updateTabTitle(@NotNull TerminalTitle terminalTitle,
                                     @NotNull ToolWindow toolWindow,
                                     @NotNull Content content) {
    String title = terminalTitle.buildTitle();
    List<String> tabs = Arrays.stream(toolWindow.getContentManager().getContents())
      .filter(c -> c!= content)
      .map(c -> c.getDisplayName()).toList();
    content.setDisplayName(generateUniqueName(title, tabs));
  }
private static void updateTabTitle(@NotNull TerminalTitle terminalTitle,
                                     @NotNull ToolWindow toolWindow,
                                     @NotNull Content content)