Unlike andIsChildOf, which matches only direct ancestors (children) of the given object, andIsInsideSubtreeOf returns a search that matches all objects in the subtree concerned, including the given obj itself, its children, grandchildren, etc.
If the given obj has no path or is not assigned to a specific site, i.e., its siteId is null, the result will only contain the given obj.