private void updateHistoryWithSelectedFiles(HistoryEntry historyEntry) {

		File currentDir = currentDirectory();
		File selectedFile = selectedFiles.getFile();
		historyEntry.setSelectedFile(currentDir, selectedFile);
	}
Displays the WAIT panel. It handles the Swing thread issues.
Ghidra/Framework/Docking/src/main/java/docking/widgets/filechooser/GhidraFileChooser.java