public <U> U inScope(Supplier<U> supplier) {
        push();
        try {
            return supplier.get();
        } finally {
            pop();
        }
    }
Assesses a value supplier in the current scope.

@param <U> the type of the value returned by the supplier.
@param supplier the value supplier to assess.
@return the value returned by the supplier.
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/language/evaluation/Scope.java