public function buildPermissionsIndex(MenuLayoutDataInterface $layout)
    {
        $this->permissionsIndex = new PermissionsIndexData;
        $this->permissions      = [];

        $this->compileIndexForLayoutLayer($layout->layout());

        $this->permissions = array_unique($this->permissions);
        $this->permissionsIndex->permissions = $this->permissions;

        return $this->permissionsIndex;
    }