private void create(String projectName) {

		root = createRootNode(projectName);

		tree = new DataTree(tool, root);
		if (!isActiveProject) {
			tree.setName(tree.getName() + ": " + projectName);
		}

		if (plugin != null) {
			tree.addGTreeSelectionListener(e -> {
				PluginTool pluginTool = plugin.getTool();
				pluginTool.contextChanged(null);
			});
		}

		add(tree, BorderLayout.CENTER);

		tree.setProjectActive(isActiveProject);
	}
Adds or removes the filter from the tree.

@param enabled Tree adds the filter; false removes it
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/datatree/ProjectDataTreePanel.java