protected function createFormattedError($max, $count, $locations = []) { return FormattedError::create($this->getErrorMessage($max, $count), $locations); }