public static bool IsNodeOrGroupNegated(this IFieldQueryNode node) { if (node.IsRequired()) { return(false); } return(node.IsExcluded() || node.GetGroupNode().IsExcluded()); }