protected function addGroupName(XType $type, &$rule)
    {
        $groupName = $this->groupName($type);

        if (isset($this->typeToRule[$groupName])) {
            $rule[] = $this->typeToRule[$groupName];
        }
    }