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