Type check for patchMethodref added