TextRange () { RangeMarkerTree.RMNode<?> node = myNode; if (node == null) { return TextRangeScalarUtil.create(myId); } int delta = node.computeDeltaUpToRoot(); return TextRangeScalarUtil.create(TextRangeScalarUtil.shift(node.toScalarRange(), delta, delta)); }