protected function addRequiredAttribute($rules)
    {
        if (!in_array('required', $rules)) {
            return;
        }

        if ($this instanceof Form\Field\MultipleFile
            || $this instanceof Form\Field\File) {
            return;
        }

        $this->required();
    }