private void ShowInsightWindow(IEnumerable <CodeCompletionInsightItem> items)
        {
            if (items == null || !items.Any())
            {
                return;
            }

            if (insightWindow != null)
            {
                insightWindow.Close();
            }

            insightWindow = new CodeCompletionMethodInsightWindow(this.InnerTextEditor.TextArea);
            foreach (var item in items)
            {
                insightWindow.Items.Add(item);
            }

            if (insightWindow.Items.Count <= 0)
            {
                return;
            }

            insightWindow.SelectedItem = insightWindow.Items[0];
            insightWindow.Closed      += delegate
            {
                insightWindow = null;
            };
            insightWindow.Show();
        }
        private void ShowInsightWindow(IEnumerable<CodeCompletionInsightItem> items)
        {
            if (items == null || !items.Any())
                return;

            if (insightWindow != null)
            {
                insightWindow.Close();
            }

            insightWindow = new CodeCompletionMethodInsightWindow(this.InnerTextEditor.TextArea);
            foreach (var item in items)
            {
                insightWindow.Items.Add(item);
            }

            if (insightWindow.Items.Count <= 0)
                return;

            insightWindow.SelectedItem = insightWindow.Items[0];
            insightWindow.Closed += delegate
            {
                insightWindow = null;
            };
            insightWindow.Show();
        }