code: public function apply(string $id, FormInterface $form): void
      {
          $id = self::PREFIX.$id;
          $data = $this->session->get($id, []);
          $this->session->remove($id);
  
          foreach ($data as [$target, $message]) {
              try {
                  $target = $this->accessor->getValue($form, $target);
              } catch (RuntimeException $exception) {
                  continue;
              }
  
              if ($target instanceof FormInterface) {
                  $target->addError(new FormError($message));
              }
          }
      }
docs: {@inheritdoc}