code: func (n *NodeDestroyResourceInstance) References() []*addrs.Reference {
  	// If we have a config, then we need to include destroy-time dependencies
  	if c := n.Config; c != nil && c.Managed != nil {
  		var result []*addrs.Reference
  
  		// We include conn info and config for destroy time provisioners
  		// as dependencies that we have.
  		for _, p := range c.Managed.Provisioners {
  			schema := n.ProvisionerSchemas[p.Type]
  
  			if p.When == configs.ProvisionerWhenDestroy {
  				if p.Connection != nil {
  					result = append(result, ReferencesFromConfig(p.Connection.Config, connectionBlockSupersetSchema)...)
  				}
  				result = append(result, ReferencesFromConfig(p.Config, schema)...)
  			}
  		}
  
  		return result
  	}
  
  	return nil
  }
docs: // GraphNodeReferencer, overriding NodeAbstractResource