private void regenerateTree() {
		// Skip if path not set.
		if (path == null) {
			FxThreadUtil.run(() -> tree.setRoot(null));
			return;
		}

		// Skip if root not found in the graph.
		InheritanceGraph graph = inheritanceGraphLookup.get();
		if (graph == null) {
			FxThreadUtil.run(() -> tree.setRoot(null));
			return;
		}
		InheritanceVertex vertex = graph.getVertex(path.getValue().getName());
		if (vertex == null) {
			FxThreadUtil.run(() -> tree.setRoot(null));
			return;
		}

		// Create the appropriate tree model and assign it.
		FxThreadUtil.run(() -> {
			WorkspaceTreeNode root = new WorkspaceTreeNode(path);
			if (contentType.get() == TreeContent.CHILDREN)
				createChildren(root, vertex);
			else
				createParents(root, vertex);
			tree.setRoot(root);
		});
	}
Recreate tree contents based on whether we want to show child types, or parent types.
recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/tabs/InheritancePane.java