public SpanNodeParent getParent() {
        return parent;
    }
Returns the parent node of this SpanNode, if any.

@return the parent node, or null if this is not yet added to a parent SpanList
document/src/main/java/com/yahoo/document/annotation/SpanNode.java