TypeMirror serializable = TypeSimplifier.typeFromClass(env.getTypeUtils(),
env.getElementUtils(), Serializable.class);
for (ExecutableElement name : properties.values()) {
TypeMirror type = name.getReturnType();
if (!TypeName.get(type).isPrimitive() &&
<BUG>!TypeSimplifier.isClassOfType(env.getTypeUtils(), parcelable.asType(), type) &&
!TypeSimplifier.isClassOfType(env.getTypeUtils(), serializable, type)) {</BUG>
env.getMessager().printMessage(Diagnostic.Kind.ERROR, "AutoValue property " +
<BUG>name.getSimpleName() + " is not primitive, Parcelable or Serializable.", name);
</BUG>
throw new AutoParcelException();

TypeMirror serializable = TypeSimplifier.typeFromClass(env.getTypeUtils(),
env.getElementUtils(), Serializable.class);
for (ExecutableElement name : properties.values()) {
TypeMirror type = name.getReturnType();
if (!TypeName.get(type).isPrimitive() &&
!TypeSimplifier.isClassOfType(env.getTypeUtils(), parcelable, type) &&
!TypeSimplifier.isClassOfType(env.getTypeUtils(), serializable, type)) {
env.getMessager().printMessage(Diagnostic.Kind.ERROR, "AutoValue property " +
name.getSimpleName() + " is not primitive, Parcelable, or Serializable.", name);
throw new AutoParcelException();
