boolean (DependencyNode node) { Artifact artifact = node.getArtifact(); if (artifact != null) { List<ArtifactDependencyNode> last = myCurrentChildren.get(myCurrentChildren.size() - 1); myCurrentChildren.remove(myCurrentChildren.size() - 1); boolean rejected = node.getData().get(ConflictResolver.NODE_DATA_WINNER) != null; myCurrentChildren.get(myCurrentChildren.size() - 1).add(new ArtifactDependencyNode(artifact, last, rejected)); } return true; }