code: private function addCurrentMessage()
      {
          if ($this->currentMessage->hasTranslation()) {
              $this->messages[] = $this->currentMessage;
              $this->currentMessage = new Message();
          }
      }
docs: Checks whether the current message can be added to the message stack