public function getParentDirectory(): ?UrlPathInterface
    {
        if ($this->myParentDirectory($aboveBaseLevel, $directoryParts)) {
            return new self($this->myIsAbsolute, $aboveBaseLevel, $directoryParts, null);
        }

        return null;
    }