public function buildTaskFromClosure($callback, $stringTask = null)
    {
        /** @var ClosureTask $task */
        $task = $this->buildTaskFromClass(ClosureTask::class);
        $task->setClosure($callback);

        // If we had an original string used, store it on
        // the task for easier reflection
        if ($stringTask) {
            $task->setStringTask($stringTask);
        }

        return $task;
    }