public Builder shapeFilter(Predicate<Shape> shapeFilter) {
            this.shapeFilter = Objects.requireNonNull(shapeFilter);
            return this;
        }
Predicate that determines if a shape and its traits are serialized.

@param shapeFilter Predicate that accepts a shape.
@return Returns the builder.
smithy-model/src/main/java/software/amazon/smithy/model/shapes/SmithyIdlModelSerializer.java