def METHOD_NAME(diagnostics: List[Diagnostic], message: str) -> None:
    """
    Adds a new diagnostic message.
    """
    diagnostic = Diagnostic(message=message)
    diagnostics.append(diagnostic)