public static ToolWindow GetD365DevExWindow(EnvDTE.Window window)
        {
            if (window.ObjectKind == null)
            {
                return(null);
            }

            Guid windowGuid = new Guid(StringFormatting.RemoveBracesToUpper(window.ObjectKind));

            return(ExtensionConstants.D365DevExToolWindows.FirstOrDefault(w => w.ToolWindowsId == windowGuid));
        }
        public static bool IsD365DevExWindow(EnvDTE.Window window)
        {
            if (window.ObjectKind == null)
            {
                return(false);
            }

            Guid windowGuid = new Guid(StringFormatting.RemoveBracesToUpper(window.ObjectKind));

            return(ExtensionConstants.D365DevExToolWindows.Count(w => w.ToolWindowsId == windowGuid) > 0);
        }