private function getAccessibleMenuItems(HCUser $user, array $menus): array
    {
        foreach ($menus as $key => $menu) {
            if (!array_key_exists('aclPermission', $menu) || $user->cannot($menu['aclPermission'])) {
                unset($menus[$key]);
            }
        }

        return array_values($menus);
    }