protected function filterElements(Collection $collection, AdminMenu $parent = null)
    {
        $children = $collection->filter(function (AdminMenu $menuItem) use ($parent) {
            return $menuItem->getParent() === $parent;
        });
        
        return $children;
    }