public function setExtraQuestionsPerPage(Collection $extra_questions_data, int $max_rows_per_page): Collection 	{ 		$extra_questions = collect(); 		$extra_questions_page = collect(); 		$question_answers_rows = 0;  		// prepare data by page 		$extra_questions_data->each(function (array $question, int $key) use (&$extra_questions_data, &$extra_questions, &$max_rows_per_page, &$extra_questions_page, &$question_answers_rows) { 			$question_answers_rows += $question['question_answer_rows'];  			if ($question_answers_rows > $max_rows_per_page) { 				$extra_questions->push($extra_questions_page);  				$question_answers_rows = $question['question_answer_rows']; 				$extra_questions_page = collect(); 			}  			$extra_questions_page->push($question);  			if (($key + 1) == $extra_questions_data->count()) { 				$extra_questions->push($extra_questions_page); 			} 		});  		return $extra_questions; 	}