private List<FSRL> getFSRLsFromNodes(List<FSBNode> nodes, boolean dirsOk) {
		List<FSRL> fsrls = new ArrayList<>();
		for (FSBNode node : nodes) {
			FSRL fsrl = node.getFSRL();
			if (!node.isLeaf() && !dirsOk) {
				boolean canConvertToContainerNode =
					node instanceof FSBRootNode && fsrl.getFS().hasContainer();
				if (!canConvertToContainerNode) {
					continue; // skip this node
				}
				// 'convert' a file system root node back into its container file node
				fsrl = fsrl.getFS().getContainer();
			}
			fsrls.add(fsrl);
		}
		return fsrls;
	}
Returns the number of selected nodes in the tree.

@return returns the number of selected nodes in the tree.
Ghidra/Features/Base/src/main/java/ghidra/plugins/fsbrowser/FSBActionContext.java