/Engine/Source/Developer/ToolMenus/Public/ToolMenus.h
Returns list of menus starting with root parent
[TArray](API\Runtime\Core\Containers\TArray)< [UToolMenu](API\Developer\ToolMenus\UToolMenu) * > CollectHierarchy ( const [FName](API\Runtime\Core\UObject\FName) Name )