private void add() {

		if (supportsDotPath && !Arrays.stream(getPaths()).anyMatch(p -> p.equals("."))) {
			int selection =
				OptionDialog.showOptionNoCancelDialog(this, "Add Path", "Choose how to add a path:",
					"File Chooser", "Program's Import Location", OptionDialog.QUESTION_MESSAGE);

			if (selection == OptionDialog.OPTION_TWO) {
				tableModel.addPaths(new String[] { "." }, addToTop, !ordered);
				return;
			}
		}

		GhidraFileChooser fileChooser = new GhidraFileChooser(this);
		fileChooser.setMultiSelectionEnabled(allowMultiFileSelection);
		fileChooser.setFileSelectionMode(fileChooserMode);
		fileChooser.setTitle(title);
		fileChooser.setApproveButtonToolTipText(title);
		if (filter != null) {
			fileChooser.addFileFilter(filter);
		}
		String dirPath = Preferences.getProperty(preferenceForLastSelectedDir);
		if (dirPath != null) {
			File dir = new File(dirPath);
			if (dir.isDirectory()) {
				fileChooser.setCurrentDirectory(dir);
			}
		}

		List<File> files = fileChooser.getSelectedFiles();
		String[] paths = files.stream().map(File::getAbsolutePath).toArray(String[]::new);
		if (!files.isEmpty()) {
			if (allowMultiFileSelection) {
				String parent = files.get(0).getParent();
				Preferences.setProperty(preferenceForLastSelectedDir, parent);
			}
			else {
				Preferences.setProperty(preferenceForLastSelectedDir, paths[0]);
			}
		}

		fileChooser.dispose();

		tableModel.addPaths(paths, addToTop, !ordered);
	}
Clear the paths in the table.
Ghidra/Framework/Docking/src/main/java/docking/widgets/pathmanager/PathnameTablePanel.java