code: public static void assertNotVoidType(final Field field, Class<? extends Annotation> annotation)
     {
        if ((field.getClass().equals(Void.class)) && (field.getClass().equals(Void.TYPE)))
        {
           throw annotation == null ? MESSAGES.fieldCannotBeOfPrimitiveOrVoidType(field) : MESSAGES.fieldCannotBeOfPrimitiveOrVoidType2(field, annotation);
        }
     }
docs: Asserts field isn't of void type.
  
  @param field to validate
  @param annotation annotation to propagate in exception message