internal static ReferenceContext Create(ProjectContext context, XElement element)
        {
            var referenceContext = new ReferenceContext(context, element);

            return(referenceContext.AssemblyVersion == null ? null : referenceContext);
        }
        internal static ProjectReferenceContext FromReference(ReferenceContext context)
        {
            var reference = new ProjectReferenceContext(context.ProjectContext, context.Element);

            return(reference.Name == null ? null : reference);
        }