@Override
  public void updateInTerminalToolWindow(@NotNull AnActionEvent e, @NotNull Project project, @NotNull Content content,
                                         @NotNull TerminalWidget terminalWidget) {
    e.getPresentation().setEnabledAndVisible(TerminalToolWindowManager.getInstance(project).isSplitTerminal(terminalWidget));
  }
@Override
  public void updateInTerminalToolWindow(@NotNull AnActionEvent e, @NotNull Project project, @NotNull Content content,
                                         @NotNull TerminalWidget terminalWidget)