IProjectContent GetExistingProjectContent(IProjectContent[] existingProjectContents, DomAssemblyName fullAssemblyName) { IProjectContent content = registry.GetExistingProjectContent(fullAssemblyName); if (content != null) { return content; } else if (existingProjectContents.Any()) { return GetExistingProjectContentForShortName(existingProjectContents, fullAssemblyName.ShortName); } return null; }