/// <summary>
        /// Gets the project to which a code element belongs, or null if none.
        /// </summary>
        public static IProject GetProject(ICodeElementInfo codeElement)
        {
            StaticWrapper element = codeElement as StaticWrapper;

            if (element == null)
            {
                return(null);
            }

            ReSharperReflectionPolicy policy = element.ReflectionPolicy as ReSharperReflectionPolicy;

            return(policy != null?policy.GetProject(element) : null);
        }
        /// <summary>
        /// Gets the declared element resolver associated with the code element, or null if none.
        /// </summary>
        public static IDeclaredElementResolver GetDeclaredElementResolver(ICodeElementInfo codeElement)
        {
            StaticWrapper element = codeElement as StaticWrapper;

            if (element == null)
            {
                return(null);
            }

            ReSharperReflectionPolicy policy = element.ReflectionPolicy as ReSharperReflectionPolicy;

            return(policy != null?policy.GetDeclaredElementResolver(element) : null);
        }