protected function fillScopes(){

        if($this->scopes !== null){
            return;
        }

        $this->scopes = [];

        foreach($this->treeModel->rootNodes() as $rootNode){

            $this->addToScopes($this->node2Scope($rootNode));


        }

        foreach ($this->manualScopes as $scope) {
            $this->addToScopes($scope);
        }

    }