ExternalDependenciesState () { ExternalDependenciesState state = new ExternalDependenciesState(); for (DependencyOnPlugin dependency : getDependencies(DependencyOnPlugin.class)) { state.myDependencies.add(new DependencyOnPluginState(dependency)); } return state; }