private static List<Option> getLoadLibraryOptions(ByteProvider provider, LoadSpec loadSpec) {
		List<Option> options = new ArrayList<>();
		for (Option option : loadSpec.getLoader()
				.getDefaultOptions(provider, loadSpec, null, false)) {
			switch (option.getName()) {
				case LOAD_ONLY_LIBRARIES_OPTION_NAME:
				case LOAD_LIBRARY_OPTION_NAME:
					option.setValue(true);
				case LINK_EXISTING_OPTION_NAME:
				case LINK_SEARCH_FOLDER_OPTION_NAME:
				case LIBRARY_SEARCH_PATH_DUMMY_OPTION_NAME:
				case LIBRARY_DEST_FOLDER_OPTION_NAME:
					options.add(option);
					break;
				default:
					break;

			}
		}
		return options;
	}
Gets a {@link List} of {@link Option}s that relate to loading libraries

@param provider The {@link ByteProvider} of the program
@param loadSpec The {@link LoadSpec} that was used to load the program
@return A {@link List} of {@link Option}s that relate to loading libraries
@see AbstractLibrarySupportLoader
Ghidra/Features/Base/src/main/java/ghidra/plugin/importer/LoadLibrariesOptionsDialog.java