Fix the detection of methods called from Qt's invokeMethod