public void SetHighlights(IIdeSource source, IEnumerable <GotoInfo> highlights)
        {
            var isPermanent = false;

            var nsource = source as NemerleSource;

            if (nsource == null)
            {
                return;
            }

            ScanLexer lexer = nsource.Scanner.GetLexer();

            if (lexer == null)
            {
                return;
            }

            if (isPermanent)
            {
                lexer.AddHighlighting(highlights);
            }
            else
            {
                lexer.SetHoverHighlights(highlights);
            }

            nsource.Recolorize(1, source.LineCount);
        }