I was afraid of this. Ok, so the recent changes to Blender made it so internal operators no longer can be shadowed. It just means more boilerplate code.
I wrote a script a while back that detects running modals, but it didn’t have the ability to find a specific modal operator. I’ve updated the code in the above post with a version of the script that does.
As far as versioning goes, the script works up to 3.5.0 beta. Updates to this due to C API breakage can easily be handled using if-statements.
Let me know if you run into any issues.