namespace SPTarkov.Server.Core.Extensions; public static class UtilityExtensions { public static IEnumerable IntersectWith(this IEnumerable first, IEnumerable second) { //a.Intersect(x => b.Contains(x)).ToList(); // gives error Delegate type could not be inferred return first.Where(second.Contains); } }