public static List<String> loadArrayOfString(String descriptor, Node node) {
        return node.expectArrayNode(() -> "Expected `" + descriptor + "` to be an array of strings. Found {type}.")
                .getElementsAs(StringNode::getValue);
    }
Expects an array of strings and returns the loaded strings.

@param descriptor Name of the property being loaded.
@param node Node to load.
@return Returns the loaded strings.
@throws SourceException on error.
smithy-model/src/main/java/software/amazon/smithy/model/node/Node.java