code: func DetermineVolumeAction(pod *v1.Pod, desiredStateOfWorld cache.DesiredStateOfWorld, defaultAction bool) bool {
  	if pod == nil || len(pod.Spec.Volumes) <= 0 {
  		return defaultAction
  	}
  	nodeName := types.NodeName(pod.Spec.NodeName)
  	keepTerminatedPodVolume := desiredStateOfWorld.GetKeepTerminatedPodVolumesForNode(nodeName)
  
  	if util.IsPodTerminated(pod, pod.Status) {
  		// if pod is terminate we let kubelet policy dictate if volume
  		// should be detached or not
  		return keepTerminatedPodVolume
  	}
  	return defaultAction
  }
docs: // DetermineVolumeAction returns true if volume and pod needs to be added to dswp
  // and it returns false if volume and pod needs to be removed from dswp