private static bool ItemSpecContainsItemReferences(ItemSpec<P, I> itemSpec) { return itemSpec.Fragments.Any(f => f is ItemSpec<P,I>.ItemExpressionFragment); }