protected function getPanelGroup(): ?ContentModel
    {
        $group = ContentModel::findOneBy(
            [
                'tl_content.ptable=?',
                'tl_content.pid=?',
                '(tl_content.type = ? OR tl_content.type = ?)',
                'tl_content.sorting < ?',
            ],
            [
                $this->get('ptable'),
                $this->get('pid'),
                'bs_panel_group_start',
                'bs_panel_group_end',
                $this->get('sorting'),
            ],
            [
                'order' => 'tl_content.sorting DESC',
            ]
        );

        if ($group && $group->type === 'bs_panel_group_start') {
            return $group;
        }

        return null;
    }