/Engine/Source/Runtime/Slate/Public/Framework/Application/MenuStack.h
Searches from bottom to top of the widget path for a menu in the stack. If the widget at the end of PathToQuery is inside a menu, there will be a menu content wrapper widget in the path.
The menu in the stack that contains the widget at the end of PathToQuery, or an invalid ptr if not found
[TSharedPtr](API\Runtime\Core\Templates\TSharedPtr)< [IMenu](API\Runtime\Slate\Framework\Application\IMenu) > FindMenuInWidgetPath ( const [FWidgetPath](API\Runtime\SlateCore\Layout\FWidgetPath) & PathToQuery ) const