src/Laravel/StorageStructure.php
public function getMainGroupsDepth($blockName)
    {
        $depth = 0;
        $groupstruct_0 = $this->getGroupsFlatConfig($blockName);

        foreach ($groupstruct_0 as $groupname => $groupstruct)
        {
            if(!array_key_exists('owner', $groupstruct))
            {
                $dataArr[$groupname] = [];

                $currdepth = $this->getGroupsDepth($groupstruct_0, $groupname, 0);

                $depth = $currdepth > $depth ? $currdepth : $depth;
            }
        }

        return $depth;
    }
public function getMainGroupsDepth($blockName)
    {
        $depth = 0;
        $groupstruct_0 = $this->getGroupsFlatConfig($blockName);

        foreach ($groupstruct_0 as $groupname => $groupstruct)
        {
            if(!array_key_exists('owner', $groupstruct))
            {
                $dataArr[$groupname] = [];

                $currdepth = $this->getGroupsDepth($groupstruct_0, $groupname, 0);

                $depth = $currdepth > $depth ? $currdepth : $depth;
            }
        }

        return $depth;
    }
@param string $blockName

@return int