@Override
	public void onUnregister(@Nonnull ConfigContainer container) {
		TreeItem<String> item = getItem(container, false);
		while (item != null) {
			TreeItem<String> parent = item.getParent();
			List<TreeItem<String>> children = parent.getChildren();
			children.remove(item);

			// Determine if the parent also needs to be pruned when it is empty.
			if (children.isEmpty()) item = parent;
			else break;
		}
	}
Pane to display all config values.

@author Matt Coley
@see ConfigManager Source of values to pull from.
@see ConfigComponentManager Controls how to represent {@link ConfigValue} instances.
@see ConfigIconManager Controls which icons to show in the tree for {@link ConfigContainer} paths.
recaf-ui/src/main/java/software/coley/recaf/ui/pane/ConfigPane.java