private boolean shouldTerminateRecurse(FSRL fsrl) {
		if (maxDepth <= 0) {
			return false;
		}

		int initialLevel = currentUASI.getFSRL().getNestingDepth();
		int fsrlLevel = fsrl.getNestingDepth();
		return (fsrlLevel - initialLevel) > maxDepth - 1;
	}
The main worker for adding a file to the batch session.
<p>
The file is probed for high-priority filesystems first, then if no matches,
Ghidra loaders, and then if no matches, all filesystems.

@param fsrl {@link FSRL} of the file to probe and process
@param taskMonitor {@link TaskMonitor} to watch and update.
@return boolean true if something in the file produced something to import.
@throws IOException if io error when reading files.
@throws CancelledException if user cancels.
Ghidra/Features/Base/src/main/java/ghidra/plugins/importer/batch/BatchInfo.java