public DomainFolder getSelectedDomainFolder() {
		GTreeNode node = tree.getLastSelectedPathComponent();
		if (node instanceof DomainFolderNode) {
			return ((DomainFolderNode) node).getDomainFolder();
		}
		return null;
	}
Get the last selected domain folder.
@return null if no domain folder is selected.
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/datatree/ProjectDataTreePanel.java