public static OutputWindowPane BuildOutputPane(this OutputWindowPanes panes) => panes.Cast <OutputWindowPane>() .Where(pane => pane.Guid == VSConstants.OutputWindowPaneGuid.BuildOutputPane_string) .FirstOrDefault();
public static OutputWindowPane PaneByName(this OutputWindowPanes panes, string name) => panes.Cast <OutputWindowPane>() .Where(pane => pane.Name == name) .FirstOrDefault() ?? panes.Add(name);