public static void ApplyPatch(this MethodDef method, Func <Instruction, bool> predicate, TranslationEmitter emitter, ITranslation translation, string propertyName) { method.ApplyPatch((inst, index) => predicate(inst[index]), emitter, translation, propertyName); }