group = $group; return $this; } public function getGroup(): ?ActionGroup { return $this->group; } public function getRootGroup(): ?ActionGroup { $group = $this->getGroup(); while ($group) { $parentGroup = $group->getGroup(); if (! $parentGroup) { break; } $group = $parentGroup; } return $group; } }