function parsePlugins(pluginsListOrMap, options)
{
    if (Array.isArray(pluginsListOrMap)) {
        return pluginsListOrMap;
    }

    /** @type {PluginList} */
    const plugins = [];

    for (let [ name, plugin ] of Object.entries(pluginsListOrMap)) {
        if (name in options) {
            plugin = plugin[name](options[name]);
        }

        plugins.push(plugin);
    }

    return plugins;
}
Parses the PostCSS plugins and options.

@param {PluginCollection} pluginsListOrMap - A list or map of plugins.
    If a map of plugins, the plugin name looks up `options`.
@param {PostCSSOptions}   options - The PostCSS wrapper options.

@returns {PluginList}