private PluginPathElement setupPluginPathElement(Path path, PluginLocationType type, TestPlugins.TestPlugin... plugins) {
        List<PluginLocation> locations = new ArrayList<>();
        for (int i = 0; i < plugins.length; i++) {
            TestPlugins.TestPlugin plugin = plugins[i];
            locations.add(setupLocation(path.resolve("plugin-" + i), type, plugin));
        }
        return new PluginPathElement(path, locations);
    }
Populate a writable disk path to be usable as single {@code plugin.path} element providing the specified plugins
@param path    A directory that should contain the populated plugins, will be created if it does not exist.
@param type    The format to which the on-disk plugins should conform
@param plugins The plugins which should be written to the specified path
@return The specific inner locations of the plugins that were written.
tools/src/test/java/org/apache/kafka/tools/ConnectPluginPathTest.java