protected DomainFolder getLinkSearchFolder(Project project, Program program,
			String projectFolderPath, List<Option> options, MessageLog log) {
		if (!shouldSearchAllPaths(program, options, log) && !isLinkExistingLibraries(options)) {
			return null;
		}
		if (project == null) {
			return null;
		}

		String linkSearchFolderPath = OptionUtils.getOption(LINK_SEARCH_FOLDER_OPTION_NAME, options,
			LINK_SEARCH_FOLDER_OPTION_DEFAULT);

		ProjectData projectData = project.getProjectData();
		if (linkSearchFolderPath.isBlank()) {
			if (projectFolderPath == null) {
				return null;
			}
			return projectData.getFolder(projectFolderPath);
		}

		return projectData.getFolder(FilenameUtils.separatorsToUnix(linkSearchFolderPath));
	}
Gets the {@link DomainFolder project folder} to search for existing libraries

@param project The {@link Project}. Could be null if there is no project.
@param program The {@link Program} being loaded
@param projectFolderPath The project folder path the program will get saved to. Could be null
  if the program is not getting saved to the project.
@param options a {@link List} of {@link Option}s
@param log The log
@return The path of the project folder to search for existing libraries, or null if no
  project folders can be or should be searched
Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/AbstractLibrarySupportLoader.java