public function setUpApplicantPositivityInRegardsToCompanyView(string $locale): void 	{ 		if ($this->baReportDataObject->getCompanyPositivityQuestion()->isEmpty()) { 			abort(404, (string) __('exceptions.company-positivity-terms-missing')); 		}  		/** 		 * @var Collection $termsWithFrequency 		 */ 		$termsWithFrequency = $this->baReportDataObject->getCompanyPositivityQuestion()->flatMap(function (Collection $data): array { 			return $data->get('data')->toArray(); 		});  		$this->baReportDataObject->setMostFrequentTerms(implode(', ', array_keys($termsWithFrequency->sortDesc()->take(5)->toArray())));  		$groupedTermsWithCount = $this->baReportDataObject->getCompanyPositivityQuestion()->map(function (Collection $data): Collection { 			return collect(['data' => $data->get('data')->sum(), 'positivityType' => $data->get('positivityType')]); 		});  		$this->baReportDataObject->setApplicantCompanyPositivityView(($groupedTermsWithCount->sortByDesc('data')->first()->get('positivityType', AvailableAnswerPositivity::Neutral->value))); 	}