GroupPath[] getSelectedGroupPaths() {
		TreePath[] paths = getSelectionPaths();
		if (paths == null || program == null) {
			return EMPTY_GROUP_SELECTION;
		}
		GroupPath[] groupPaths = new GroupPath[paths.length];
		for (int i = 0; i < groupPaths.length; i++) {
			ProgramNode node = (ProgramNode) paths[i].getLastPathComponent();
			groupPaths[i] = node.getGroupPath();
		}
		return groupPaths;
	}
Get the group paths that correspond to the nodes that are
selected.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/programtree/ProgramDnDTree.java