@Override
            public void apply(Sink sink, AbstractCodeWriter<?> writer) throws IOException {
                Object value = writer.getContext(variable());
                if (!isConditionTruthy(value) == negate) {
                    super.apply(sink, writer);
                }
            }
A BlockOperation that only runs if the referenced variable matches the condition.
smithy-utils/src/main/java/software/amazon/smithy/utils/CodeFormatter.java