protected function matchGroup($props, $alias, $class)
    {
        if ($props['any']) {
            return true;
        }

        foreach (['path', 'name'] as $group) {
            if ($this->matchClass($props[$group], $group, $alias, $class)) {
                return true;
            }
        }

        return false;
    }