Method GetOptimizableHasAncestorFilter<TProps>(TreeQueryContext<TProps>)
Determines if WhereHasAncestor can be optimized through logic inversion
protected TreeFilter? GetOptimizableHasAncestorFilter<TProps>(TreeQueryContext<TProps> context) where TProps : class, new()