public boolean addPath(ResourceFile file, boolean enabled) {
		ResourceFile dir = file.isDirectory() ? file : file.getParentFile();
		for (Path path : pathModel.getAllPaths()) {
			if (path.getPath().equals(dir)) {
				if (enabled && !path.isEnabled()) {
					path.setEnabled(true);
					pathModel.fireTableDataChanged();
					firePathsChanged();
					return true;
				}
				return false;
			}
		}
		Path p = new Path(dir);
		p.setEnabled(enabled);
		pathModel.addPath(p, true);
		Preferences.setProperty(preferenceForLastSelectedDir, dir.getAbsolutePath());
		firePathsChanged();
		return true;
	}
Add a new file path and set its enablement
@param file the file whose path to use
@param enabled true if enabled
@return true if the enabled path did not already exist
Ghidra/Framework/Docking/src/main/java/docking/widgets/pathmanager/PathManager.java