void (@Nullable TtyResizeHandler ttyResizeHandler) { if (terminalHandler instanceof TerminalHandlerBase && ttyResizeHandler != null) { ((TerminalHandlerBase)terminalHandler).setResizeHandler(ttyResizeHandler); } }