code: func (f *PlatformFilter) SetTask(t *api.Task) bool {
  	placement := t.Spec.Placement
  	if placement != nil {
  		// copy the platform information
  		f.supportedPlatforms = placement.Platforms
  		if len(placement.Platforms) > 0 {
  			return true
  		}
  	}
  	return false
  }
docs: // SetTask returns true when the filter is enabled for a given task.