public override FilterExpression?OnApplyFilter(FilterExpression?existingFilter) { base.OnApplyFilter(existingFilter); if (_clientSettingsProvider.ArePlanetsWithPrivateNameHidden) { AttrAttribute privateNameAttribute = ResourceType.GetAttributeByPropertyName(nameof(Planet.PrivateName)); FilterExpression hasNoPrivateName = new ComparisonExpression(ComparisonOperator.Equals, new ResourceFieldChainExpression(privateNameAttribute), NullConstantExpression.Instance); return(LogicalExpression.Compose(LogicalOperator.And, hasNoPrivateName, existingFilter)); } return(existingFilter); }