@Override
    public void connectToTty(@NotNull TtyConnector ttyConnector, @NotNull TermSize initialTermSize) {
      widget().getTerminal().resize(initialTermSize, RequestOrigin.User);
      widget().createTerminalSession(ttyConnector);
      widget().start();
      widget().getComponent().revalidate();
      widget().notifyStarted();
      myTtyConnectorAccessor.setTtyConnector(ttyConnector);
    }
@Override
    public void connectToTty(@NotNull TtyConnector ttyConnector, @NotNull TermSize initialTermSize)