/Engine/Source/Runtime/CoreUObject/Public/Blueprint/BlueprintSupport.h
Function that walks the object graph, ensuring that there are no references to SKEL classes:
static void ValidateNoExternalRefsToSkeletons()