using System.Collections.Generic; namespace CliFx.SourceGeneration.Utils.Extensions; internal static class CollectionExtensions { public static IEnumerable WhereNotNull(this IEnumerable source) where T : class { foreach (var i in source) { if (i is not null) yield return i; } } }