DependencyNode (MavenArtifactNode artifact, MavenProject mavenProject, int from) { for (int i = from; i < myChildren.size(); i++) { DependencyNode node = myChildren.get(i); if (node.getArtifact().equals(artifact.getArtifact()) && node.isUnresolved() == artifact.getArtifact().isFileUnresolved()) { return node; } } return new DependencyNode(myMavenProjectsStructure, this, artifact, mavenProject, artifact.getArtifact().isFileUnresolved()); }