/Engine/Source/Editor/ContentBrowser/Public/ContentBrowserMenuContexts.h
Sometimes you want to write actions that will only operate on a singular selected asset, in those cases you can use the following function which will only return a live ptr if it's an instance of that asset type, and only one thing is selected.
const [FAssetData](API\Runtime\CoreUObject\AssetRegistry\FAssetData) * GetSingleSelectedAssetOfType ( const [UClass](API\Runtime\CoreUObject\UObject\UClass) * AssetClass, EIncludeSubclasses IncludeSubclasses ) const