private List<DomainFileArchive> getMatchingArchives(List<DomainFileArchive> archivesList,
			DomainFile[] selectedFiles) {
		List<DomainFileArchive> archiveList =
			new ArrayList<>(selectedFiles.length);
		for (DomainFile domainFile : selectedFiles) {
			DomainFileArchive archive = getArchiveForDomainFile(archivesList, domainFile);
			if (archive != null) {
				archiveList.add(archive);
			}
			else {
				// This shouldn't happen.
				throw new AssertException(
					"Can't find data type archive for domain file " + domainFile.getName());
			}
		}
		return archiveList;
	}
Displays the undo checkout confirmation dialog for each checked out file and then 
undoes the checkout while keeping a copy of the working version of the file if the 
user chooses to do so.<br>
All unmodified checkouts will be undone. Only modified checkouts the user chooses
will be undone.
@param unmodifiedArchivesList the list of unmodified archives
@param modifiedArchivesList the list of archives that have been modified
@throws CancelledException if cancelled
Ghidra/Features/Base/src/main/java/ghidra/framework/main/datatree/VersionControlDataTypeArchiveUndoCheckoutAction.java