protected function addField(FormField $field, $modify = false)
    {
        if (!$modify && !$this->rebuilding) {
            $this->preventDuplicate($field->getRealName());
        }

        $this->fields[$field->getRealName()] = $field;

        return $this;
    }