public function getQuestionDataForApplicantPerceptionQuestionsByApplicantType(Collection $questions, Collection $applicants): Collection 	{ 		$questionsCollection = collect();  		$allEmployeesApplicantIds = $applicants->whereIn('employee_type', [InternalBaApplicantType::Employee, InternalBaApplicantType::Management])->pluck('id'); 		$employeesApplicantIds = $applicants->whereIn('employee_type', [InternalBaApplicantType::Employee])->pluck('id'); 		$managementApplicantIds = $applicants->whereIn('employee_type', [InternalBaApplicantType::Management])->pluck('id');  		foreach ($questions as $question) { 			if (!$question) { 				return collect(); 			}  			$allEmployeesAnswersAverage = $question->answers->whereIn('applicant_id', $allEmployeesApplicantIds)->avg('answer_value'); 			$employeesAnswersAverage = $question->answers->whereIn('applicant_id', $employeesApplicantIds)->avg('answer_value'); 			$managementAnswersAverage = $question->answers->whereIn('applicant_id', $managementApplicantIds)->avg('answer_value');  			$questionsCollection->push(collect( 				[ 					'title' => $question->getTranslation('title', $this->locale), 					'allEmployeesAverage' => number_format($allEmployeesAnswersAverage, 2), 					'employeesAverage' => number_format($employeesAnswersAverage, 2), 					'managementAverage' => number_format($managementAnswersAverage, 2), 				] 			)); 		}  		return $questionsCollection; 	}