private boolean isValidPath(Path path) {
		if (fileChooserMode == GhidraFileChooserMode.FILES_ONLY && path.getPath().isDirectory()) {
			return false;
		}
		if (fileChooserMode == GhidraFileChooserMode.DIRECTORIES_ONLY && path.getPath().isFile()) {
			return false;
		}
		return path.exists();
	}
Restores the paths from the specified SaveState object.
@param ss the SaveState object
Ghidra/Framework/Docking/src/main/java/docking/widgets/pathmanager/PathManager.java