// Thing if the object is a root class
if (rootFinder.getTerminalElements().contains(object)) {
result.add(root);
}
// Not a root, so must have another parent
parentClassExtractor.reset();
parentClassExtractor.setCurrentClass(object);
for (OWLOntology ont : ontologies) {
for (OWLAxiom ax : ont.getAxioms(object)) {
ax.accept(parentClassExtractor);
}