public static bool IsTransitiveDependency(this IProject project, NuGetReference nugetReference) => project.ContainsDependency(d => d.ReferenceSatisfiesDependency(nugetReference, true));
public static bool IsTransitivelyAvailable(this IProject project, string packageName) => project.ContainsDependency(d => string.Equals(packageName, d.Id, StringComparison.OrdinalIgnoreCase));