public static void ReportIllegalInputCharacter(this ICollection<Diagnostic> diagnostics, TextSpan textSpan, char character) { diagnostics.Report(textSpan, DiagnosticId.IllegalInputCharacter, character); }