You can call `plugin.setDependencies(dependencies)` to set the entire list in one step rather than looping. This does have the side-effect of aliasing the list, but I don't think this is likely to be a problem in typical use.