List<JpsArtifact> () { Graph<JpsArtifact> graph = createArtifactsGraph(); DFSTBuilder<JpsArtifact> builder = new DFSTBuilder<>(graph); List<JpsArtifact> names = new ArrayList<>(graph.getNodes()); names.sort(builder.comparator()); return names; }