/**
  * @param AbstractResourceFile $resource the next task to find matching the target resource.
  * @return RenderFixTask False if no matching task.
  */
 public function next(AbstractResourceFile $resource)
 {
     foreach ($this->queue as $key => $task) {
         if ($task->getResource()->getMemberId() === $resource->getMemberId()) {
             unset($this->queue[$key]);
             return $task;
         }
     }
     return FALSE;
 }