public function setUpApplicantPositivityInRegardsToCompanyView(string $locale): void 	{ 		if ($this->baInternalReportDataObject->getAllApplicantsCompanyPositivityQuestion()->isNotEmpty()) { 			/** 			 * @var Collection $termsWithFrequency 			 */ 			$termsWithFrequency = $this->baInternalReportDataObject->getAllApplicantsCompanyPositivityQuestion()->flatMap(function (Collection $data): array { 				return $data->get('data')->toArray(); 			});  			$this->baInternalReportDataObject->setMostFrequentTerms(implode(', ', array_keys($termsWithFrequency->sortDesc()->take(5)->toArray())));  			$groupedTermsWithCount = $this->baInternalReportDataObject->getAllApplicantsCompanyPositivityQuestion()->map(function (Collection $data): Collection { 				return collect(['data' => $data->get('data')->sum(), 'positivityType' => $data->get('positivityType')]); 			});  			$this->baInternalReportDataObject->setAllEmployeesCompanyPositivityView(($groupedTermsWithCount->sortByDesc('data')->first()->get('positivityType', AvailableAnswerPositivity::Neutral->value))); 		}  		if ($this->baInternalReportDataObject->getEmployeesCompanyPositivityQuestion()?->isNotEmpty()) { 			$groupedTermsWithCount = $this->baInternalReportDataObject->getEmployeesCompanyPositivityQuestion()->map(function (Collection $data): Collection { 				return collect(['data' => $data->get('data')->sum(), 'positivityType' => $data->get('positivityType')]); 			});  			$this->baInternalReportDataObject->setEmployeesCompanyPositivityView(($groupedTermsWithCount->sortByDesc('data')->first()->get('positivityType', AvailableAnswerPositivity::Neutral->value))); 		}  		if ($this->baInternalReportDataObject->getManagementCompanyPositivityQuestion()?->isNotEmpty()) { 			$groupedTermsWithCount = $this->baInternalReportDataObject->getManagementCompanyPositivityQuestion()->map(function (Collection $data): Collection { 				return collect(['data' => $data->get('data')->sum(), 'positivityType' => $data->get('positivityType')]); 			});  			$this->baInternalReportDataObject->setManagementCompanyPositivityView(($groupedTermsWithCount->sortByDesc('data')->first()->get('positivityType', AvailableAnswerPositivity::Neutral->value))); 		} 	}