code: def add_validation_message(self, message):
          
          if message.file not in self.messages:
              self.messages[message.file] = []
  
          self.messages[message.file].append(message)
docs: Adds a message to the messages dict
          :param message: