getAncestors

fun INode.getAncestors(includeSelf: Boolean = false): Sequence<INode>