public void writeToScope(Scope<Type> scope) {
        for (Parameter parameter : parameters) {
            RuleError.context(String.format("while typechecking par %s", parameter.getName()),
                    parameter,
                    () -> scope.insert(parameter.getName(), parameter.toType()));
        }
    }
Writes the parameters in this collection to the given scope.

@param scope the scope
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/language/syntax/parameters/Parameters.java