':type message: str
:type unique: bool'

def warning(self, message, unique=False):

    if unique:
        if (message in self.warnings_unique):
            return
        self.warnings_unique.add(message)
    self.__warning(message)
    self.warnings.append(message)
