PluginDescriptor (PluginDescriptor pluginDescriptor) { if (pluginDescriptor == null) return null; PluginDescriptor clone = clone(pluginDescriptor); clone.setDependencies(new ArrayList<ComponentDependency>(pluginDescriptor.getDependencies())); return clone; }