GraphComponent graphComponent = tab.getInferredGraphComponent();
graphComponent.getVisualisedObjectManager().hideAll();
graphComponent.getVisualisedObjectManager().showObjects(objs);
// Make sure that we refresh the inferred hierarchy
LazyTreeNode node = (LazyTreeNode) inferredHierarchy.getModel().getRoot();
node.reload();
}
}