code: @Override
    public boolean visit(TypeDeclaration node) {
      TypeMirror serializableType = typeUtil.resolveJavaType("java.io.Serializable").asType();
      TypeMirror nodeType = node.getTypeElement().asType();
      boolean isSerializable = typeUtil.isAssignable(nodeType, serializableType);
      boolean stripReflection = !translationUtil.needsReflection(node.getTypeElement());
      return stripReflection && isSerializable;
    }
docs: Only modify Serializable types when stripping reflection metadata.