private static ReflectionError incorrectFieldType(Field field, Class<?> actualType, Class<?> expectedType) {
String fieldTypeName = field.getDeclaringClass().getName();
String message = concat("The type of the field ", quote(field.getName()), " in ", fieldTypeName, " should be <",
expectedType.getName(), "> but was <", actualType.getName(), ">");
throw new ReflectionError(message);
}