How to get a simple collision shape on an InstancedStaticMeshComponent?

I have added simple collision primitives, such as capsules and spheres, to some of my tree models. I placed these models into the scene and obtained the InstancedStaticMeshComponent instances through some detection methods. However, I want to read the simple collision shapes attached to these MeshComponents and draw them using DrawDebug functions, for example, to visualize the capsules. In UE4.26, I was able to retrieve these shapes using BodyInstance.GetAllShapes, but in UE5.4, those APIs have disappeared, and I’m unsure how to proceed. Currently, I’m able to access the shapes through FBodyInstance::GetBodySetup()->AggGeom, but the coordinates and sizes are incorrect.