Determines whether there is a sibling of the specified type among root-level siblings. This walks up to find the root container, then checks all siblings.
public bool ContainsParentOrSiblingOfType<T>()
where T : Inline
true if a sibling of the specified type exists; false otherwise