code: public function displayFeedbacks(RunnerServiceContext $context)
      {
          $displayFeedbacks = false;
  
          if ($context instanceof QtiRunnerServiceContext) {
              /* @var TestSession $session */
              $session = $context->getTestSession();
  
              if($session->getCurrentSubmissionMode() !== SubmissionMode::SIMULTANEOUS){
                  $displayFeedbacks = true;
              }
          } else {
              throw new \common_exception_InvalidArgumentType(
                  'QtiRunnerService',
                  'displayFeedbacks',
                  0,
                  'oat\taoQtiTest\models\runner\QtiRunnerServiceContext',
                  $context
              );
          }
          return $displayFeedbacks;
      }
docs: Should we display feedbacks
  @param RunnerServiceContext $context
  @return boolean
  @throws \common_exception_InvalidArgumentType