static CaretData copyOf(CaretData original, boolean omitCaretRowData) {
    if (original == null || !omitCaretRowData) {
      return original;
    }
    else {
      return new CaretData(-1, -1, original.selectionStarts, original.selectionEnds);
    }
  }
static CaretData copyOf(CaretData original, boolean omitCaretRowData)