private void buildMainPanel() {
		mainPanel = new JPanel(new BorderLayout());

		tree = new InjectableGTree(rootNode);
		tree.setRootVisible(false);
		tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
		mainPanel.add(tree);

		tree.getGTSelectionModel().addGTreeSelectionListener(evt -> {
			setContext();
		});
		tree.addGTModelListener((AnyChangeTreeModelListener) e -> {
			setContext();
		});
		// TODO: Double-click or ENTER (activate) should open and/or activate trace/snap
		tree.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent e) {
				if (e.getClickCount() == 2 && e.getButton() == MouseEvent.BUTTON1) {
					activateSelectedNode();
					e.consume();
				}
			}
		});
		tree.addKeyListener(new KeyAdapter() {
			@Override
			public void keyPressed(KeyEvent e) {
				if (e.getKeyCode() == KeyEvent.VK_ENTER) {
					activateSelectedNode();
					e.consume();
				}
			}
		});
	}
This allows the test framework to use reflection to access this method.
Ghidra/Debug/Debugger-rmi-trace/src/main/java/ghidra/app/plugin/core/debug/gui/tracermi/connection/TraceRmiConnectionManagerProvider.java