/Engine/Source/Editor/UnrealEd/Public/Kismet2/BlueprintEditorUtils.h
Gather all bps that Blueprint depends on
static void GatherDependencies ( const [UBlueprint](API\Runtime\Engine\Engine\UBlueprint) * Blueprint, [TSet](API\Runtime\Core\Containers\TSet)< [TWeakObjectPtr](API\Runtime\Core\UObject\TWeakObjectPtr)< [UBlueprint](API\Runtime\Engine\Engine\UBlueprint) >> & OutDependencies, [TSet](API\Runtime\Core\Containers\TSet)< [TWeakObjectPtr](API\Runtime\Core\UObject\TWeakObjectPtr)< [UStruct](API\Runtime\CoreUObject\UObject\UStruct) >> & OutUDSDependencies )