class SensitiveDataAwarePlanWriter extends RelWriterImpl {
        /** */
        public SensitiveDataAwarePlanWriter(PrintWriter pw) {
            super(pw, SqlExplainLevel.ALL_ATTRIBUTES, false);
        }

        /** {@inheritDoc} */
        @Override public RelWriter item(String term, @Nullable Object val) {
            return super.item(term, removeSensitive(val));
        }

        /** */
        private Object removeSensitive(Object val) {<FILL_FUNCTION_BODY>}

        /** {@inheritDoc} */
        @Override public boolean nest() {
            // Don't try to expand some values by rel nodes, use original values.
            return true;
        }
    }

            if (val instanceof RexNode)
                return LiteralRemoveShuttle.INSTANCE.apply((RexNode)val);
            else if (val instanceof Collection)
                return F.transform((Collection<?>)val, this::removeSensitive);
            else if (val instanceof SearchBounds)
                return ((SearchBounds)val).transform(LiteralRemoveShuttle.INSTANCE::apply);

            return val;
        
<no_super_class>