code: public function onKernelRequest(GetResponseEvent $event)
      {
          if (!$this->scopeMatcher->isBackendMasterRequest($event)) {
              return;
          }
  
          $token = $this->tokenStorage->getToken();
  
          if (null === $token || $this->authenticationTrustResolver->isAnonymous($token)) {
              return;
          }
  
          $localMenu = &$GLOBALS['BE_MOD'];
          $this->buildBackendModules($localMenu);
          $this->injectChildTables($localMenu);
      }
docs: Replaces the current session data with the stored session data.
  
  @param GetResponseEvent $event The event.
  
  @SuppressWarnings(PHPMD.Superglobals)
  @SuppressWarnings(PHPMD.CamelCaseVariableName)
  
  @return void