private @NotNull TerminalLine getLineAtCursor(@NotNull TerminalTextBuffer textBuffer) {
      return textBuffer.getLine(getLineNumberAtCursor());
    }
private @NotNull TerminalLine getLineAtCursor(@NotNull TerminalTextBuffer textBuffer)