private void waitForFileToBeProcessed(Path filePath) throws StopWaitingException {
		// check without dialogs every 100 milliseconds
		if (filePath.toFile().exists()) {

			// set up periodic check for file
			CheckForFileProcessedRunnable checkForFile =
				new CheckForFileProcessedRunnable(filePath, 100, TimeUnit.MILLISECONDS);

			// start checking for file
			checkForFile.startChecking(100, TimeUnit.MILLISECONDS);

			// block until file has been processed or user answers dialog with No.
			checkForFile.awaitTermination();
		}
	}
waits for the file located at the given file path to be deleted.
@param filePath the path to the file to wait for deletion of
@throws StopWaitingException in the event the stop waiting dialog is shown and answered No.
Ghidra/Features/GhidraGo/src/main/java/ghidra/app/plugin/core/go/GhidraGoSender.java