public function addPath(string $path)
    {
        $path = \rtrim($path, '/');

        if (! \in_array($path, $this->paths)) {
            $this->paths[] = $path;
        }

        return $this;
    }