public function end_el(&$output, $item, $depth = 0, $args = [])
    {
        if ($depth === 0 && in_array('menu-item-has-children', $item->classes)) {
            $indent = str_repeat('    ', $this->indent + $depth);
            $output .= sprintf('%s</li>%s', $indent, PHP_EOL);
        } else {
            $output .= sprintf('</li>%s', PHP_EOL);
        }
    }