private static void LogDiagnostics(string dataType, AbstractData data, List <KeyValuePair <DiagnosticSeverity, string> > logs)
        {
            if (data.IgnoredReason != null)
            {
                logs.Add(new KeyValuePair <DiagnosticSeverity, string>(data.IgnoredReason.DiagnosticSeverity,
                                                                       $"{dataType} {data.GetSymbol().Name} {data.GetLineSpan().Span.Format()} ignored reason: {data.IgnoredReason.Reason}"));
            }

            foreach (var diagnostic in data.GetDiagnostics())
            {
                logs.Add(new KeyValuePair <DiagnosticSeverity, string>(diagnostic.DiagnosticSeverity,
                                                                       $"{dataType} {data.GetSymbol().Name} {data.GetLineSpan().Span.Format()}: {diagnostic.Description}"));
            }
        }
        private static void LogDocumentDiagnostics(AbstractData data, List <KeyValuePair <DiagnosticSeverity, string> > logs)
        {
            if (data.IgnoredReason != null)
            {
                logs.Add(new KeyValuePair <DiagnosticSeverity, string>(data.IgnoredReason.DiagnosticSeverity,
                                                                       $"Document ignored reason: {data.IgnoredReason.Reason}"));
            }

            foreach (var diagnostic in data.GetDiagnostics())
            {
                logs.Add(new KeyValuePair <DiagnosticSeverity, string>(diagnostic.DiagnosticSeverity,
                                                                       $"Document: {diagnostic.Description}"));
            }
        }