private void configFilter(JSONWriter.Context context, Filter... filters) {
        if (filters == null || filters.length == 0) {
            return;
        }
        for (Filter filter : filters) {
            if (filter instanceof NameFilter f) {
                if (context.getNameFilter() == null) {
                    context.setNameFilter(f);
                } else {
                    context.setNameFilter(NameFilter.compose(context.getNameFilter(), f));
                }
            }

            if (filter instanceof ValueFilter f) {
                if (context.getValueFilter() == null) {
                    context.setValueFilter(f);
                } else {
                    context.setValueFilter(ValueFilter.compose(context.getValueFilter(), f));
                }
            }

            if (filter instanceof PropertyFilter f) {
                context.setPropertyFilter(f);
            }

            if (filter instanceof PropertyPreFilter f) {
                context.setPropertyPreFilter(f);
            }

            if (filter instanceof BeforeFilter f) {
                context.setBeforeFilter(f);
            }

            if (filter instanceof AfterFilter f) {
                context.setAfterFilter(f);
            }

            if (filter instanceof LabelFilter f) {
                context.setLabelFilter(f);
            }

            if (filter instanceof ContextValueFilter f) {
                context.setContextValueFilter(f);
            }

            if (filter instanceof ContextNameFilter f) {
                context.setContextNameFilter(f);
            }
        }
    }
Fastjson2 for Spring WebFlux.

@author Xi.Liu
@see AbstractJackson2Decoder
extension-spring6/src/main/java/com/alibaba/fastjson2/support/spring6/http/codec/Fastjson2Encoder.java