/Engine/Source/Editor/UnrealEd/Public/Kismet2/BlueprintEditorUtils.h
If a blueprint is directly tied to a level (level script and anonymous blueprints), this will return a pointer to that level
The level, if any, tied to this blueprint
static [ULevel](API\Runtime\Engine\Engine\ULevel) * GetLevelFromBlueprint ( const [UBlueprint](API\Runtime\Engine\Engine\UBlueprint) * Blueprint )