protected function ensureGroupsLoaded($action)
    {
        if ($action !== $this->action) {
            $this->action = $action;
            $this->groups = \array_flip($this->processorBag->getActionGroups($action));
        }
    }