void (@NotNull List<PluginId> depends, PluginId @Nullable [] optionalDependencies) { myDependencies = new ArrayList<>(); for (PluginId id : depends) { myDependencies.add(new PluginNodeDependency(id, false)); } if (optionalDependencies != null) { for (PluginId dependency : optionalDependencies) { myDependencies.add(new PluginNodeDependency(dependency, true)); } } }