   schema, _ := providerSchema.SchemaForResourceAddr(n.Addr.ContainingResource())  if schema == nil {   // Should be caught during validation, so we don't bother with a pretty error here   return nil, fmt.Errorf("provider does not support resource type %q", n.Addr.Resource.Type)  }   