public function getAnswersByDepartment(array $applicant_ids): array 	{ 		$data = [];  		$departments_with_applicants_count = Applicant::with('department')->whereIn('id', $applicant_ids)->get()->groupBy('department.id')->toArray();  		$departments = Department::whereIn('id', array_keys($departments_with_applicants_count))->get();  		$departments->each(function (Department $department) use (&$data, &$departments_with_applicants_count) { 			array_push($data, [ 				'title' => $department->getTranslation('title', $this->locale), 				'answers_count' => count($departments_with_applicants_count[$department->id]), 			]); 		});  		return $data; 	}