final RevisionInspector revisionInsp = Adaptable.Factory.getAdapter(inspector, RevisionInspector.class, null);
final ParentInspector parentInsp = Adaptable.Factory.getAdapter(inspector, ParentInspector.class, null);
final LinkRevisionInspector linkRevInspector = Adaptable.Factory.getAdapter(inspector, LinkRevisionInspector.class, null);
// instantiate implementors in reverse order
RevlogDelegate head = parentInsp == null ? null : new ParentDelegate(parentInsp, null, _start, end);
if (revisionInsp != null) {
head = new RevisionDelegate(revisionInsp, head);
}
if (linkRevInspector != null) {
head = new LinkRevDelegate(linkRevInspector, head);
}
// first to get notified is created last
assert head != null; // we know all subclasses of Revlog.Inspector
head.walk(getRepo(), content, _start, end);
}