Iterator<JpsArtifact> (JpsArtifact artifact) { final Set<JpsArtifact> included = new LinkedHashSet<>(); processIncludedArtifacts(artifact, includedArtifact -> { if (myArtifactNodes.contains(includedArtifact)) { included.add(includedArtifact); } }); return included.iterator(); }