Get the class hierarchy to the given class, from topmost ancestor to parent
Optional
Optional class to stop at
Get the class hierarchy to the given class, from topmost ancestor to parent