def METHOD_NAME(self, path: str, splits: List[str]) -> Optional["RepoUrl"]:
    if len(splits) == 1:
        self.namespace = self.username
        self.repo = path
        return self
    if len(splits) < 2:
        # invalid cases
        return None
    namespace_parts = self._check_fork(splits)
    self.namespace = "/".join(namespace_parts)
    self.repo = splits[-1]
    return self