private static void updatedMovedIntoEnd(final Document document, final @NotNull MoveInfo info, final int offset) {
    if (offset + 1 < document.getTextLength()) {
      final int line = document.getLineNumber(offset + 1);
      final LineRange toMove2 = info.toMove2;
      if (toMove2 == null) return;
      info.toMove2 = new LineRange(toMove2.startLine, MathUtil.clamp(line, toMove2.endLine, document.getLineCount() - 1));
    }
  }
private static void updatedMovedIntoEnd(final Document document, final @NotNull MoveInfo info, final int offset)