static AutoCloseable tempSetFieldToSingleMethodProxy(O o, S field, O target, S methodName) { if (o == null || target == null) null; Class type = fieldType(o, field); if (type == null) fail("Field " + field + " not found in " + className(o)); ret tempSetField(o, field, singleObjectMethodProxy(type, target, methodName)); }