public ObjectNode getArrayMember(String key, Consumer<List<Node>> consumer) {
        getArrayMember(key).ifPresent(array -> consumer.accept(array.getElements()));
        return this;
    }
Gets the nodes of an optional member that contains an array.

@param key Key to retrieve.
@param consumer Consumer that accepts the array node value.
@return Returns the node.
smithy-model/src/main/java/software/amazon/smithy/model/node/ObjectNode.java