protected function optimizeStringField()
    {
        if (empty($this->field->methodParams) && in_array($this->field->dataType, ['string', 'char']) && !empty($this->parser->getMaxLength())) {
            $this->field->methodParams[] = $this->parser->getMaxLength();
        }

        return $this;
    }