method.setNative(true);
method.setReturnType(context.getVoid());
method.setStatic(false);
method.setVisibility(Visibility.PRIVATE);
final NewMethodParameter instance = method.newParameter();
instance.setFinal(true);
instance.setName(SerializationConstants.CLIENT_OBJECT_READER_IMPL_FIELD_SETTER_INSTANCE_PARAMETER);
instance.setType(field.getEnclosingType());
final NewMethodParameter value = method.newParameter();
value.setFinal(true);
value.setName(SerializationConstants.CLIENT_OBJECT_READER_IMPL_FIELD_SETTER_VALUE_PARAMETER);
final Type fieldType = field.getType();
value.setType(fieldType);
if (fieldType.equals(context.getLong())) {
method.addMetaData("com.google.gwt.core.client.UnsafeNativeLong", "");
}