public Optional<Node> getExtension(String key) {
        return extensions.getMember(key);
    }
Gets an extension value by name.

@param key Name of the extension to retrieve.
@return Returns the extension object.
smithy-jsonschema/src/main/java/software/amazon/smithy/jsonschema/SchemaDocument.java