Not sure if relevant, but you can hook a specific function in a mixin to find the object that calls the inherited function. There's a slight caveat, in that hooking will only apply to objects that didn't exist when your addon loaded.
Lua Code:
hooksecurefunc(MapCanvasMixin, 'AcquirePin', AcquirePin)