def METHOD_NAME(self, sequence_node, dictionary):
    for node in sequence_node:
        # Parse as a simple string
        if type(node) is ScalarNode:  # pylint: disable=unidiomatic-typecheck
            kind = node.as_str()
            conf = PluginConfiguration(kind, self._allow_deprecated)
        # Parse as a dictionary
        elif type(node) is MappingNode:  # pylint: disable=unidiomatic-typecheck
            node.validate_keys(["kind", "allow-deprecated"])
            kind = node.get_str("kind")
            allow_deprecated = node.get_bool("allow-deprecated", self._allow_deprecated)
            conf = PluginConfiguration(kind, allow_deprecated)
        else:
            p = node.get_provenance()
            raise LoadError(
                "{}: Plugin is not specified as a string or a dictionary".format(p), LoadErrorReason.INVALID_DATA
            )
        dictionary[kind] = conf