@Nullable
  public static JBTerminalWidget getWidgetByContent(@NotNull Content content) {
    TerminalWidget data = content.getUserData(TERMINAL_WIDGET_KEY);
    return data != null ? JBTerminalWidget.asJediTermWidget(data) : null;
  }
@Nullable
  public static JBTerminalWidget getWidgetByContent(@NotNull Content content)