Set<Resource> indexRoots = new HashSet<>();
indexRoots.addAll(graph.syncRequest(new ObjectsWithType(project, L0.ConsistsOf, L0.IndexRoot)));
indexRoots.addAll(graph.syncRequest(new OntologiesFromLibrary(graph.getRootLibrary())));
Set<Resource> indexRoots = new HashSet<>();
indexRoots.addAll(graph.syncRequest(new ObjectsWithType(project, L0.ConsistsOf, L0.IndexRoot)));
indexRoots.addAll(graph.syncRequest(new OntologiesFromLibrary(graph.getRootLibrary())));