This should be done before getting the method implementation, and then `method_getImplementation()` can be used instead of `class_getMethodImplementation` (reducing the amount of runtime work that's done).