protected function rules(Collection $fieldsets)
    {
        $grid = $this->grid;
        if (!empty($grid->rules)) {
            $controls = [];
            foreach ($fieldsets as $fieldset) {
                foreach ($fieldset->controls() as $control) {
                    array_push(
                            $controls, method_exists($control, 'getName') ? $control->getName() : $control->name
                    );
                }
            }
            $rulesDispatcher = new RulesDispatcher($grid->rules);
            $this->grid->rules($rulesDispatcher->getSupported($controls));
        }
    }