List<Artifact> returnValue = null;
final DependencyNode projectNode = dependencyGraphBuilder.buildDependencyGraph(project, filter);
assert projectNode != null;
final CollectingDependencyNodeVisitor visitor = new CollectingDependencyNodeVisitor();
projectNode.accept(visitor);
final Collection<? extends DependencyNode> nodes = visitor.getNodes();
if (nodes != null && !nodes.isEmpty()) {
final Artifact projectArtifact = project.getArtifact();
returnValue = new ArrayList<Artifact>();