public function setProcessSupervisor(ProcessSupervisor $processSupervisor): void
    {
        if ($this->processSupervisor !== null) {
            throw new RuntimeException('The process supervisor has already been set.');
        }

        $this->processSupervisor = $processSupervisor;
    }