private List<ExtLibInfo> getLibsToSearch() throws CancelledException {
			List<ExtLibInfo> result = new ArrayList<>();
			ExternalManager externalManager = program.getExternalManager();
			for (String libName : getOrderedRequiredLibraryNames(program)) {
				Library lib = externalManager.getExternalLibrary(libName);
				String libPath = lib != null ? lib.getAssociatedProgramPath() : null;
				Program libProg = libPath != null ? getLibraryProgram(libPath) : null;
				Throwable problem =
					libProg == null && libPath != null ? problemLibraries.get(libPath) : null;

				result.add(
					new ExtLibInfo(libName, lib, libPath, libProg, new ArrayList<>(), problem));
			}
			return result;
		}
Returns an ordered list of external libraries that need to be searched.

@return list of ExtLibInfo elements, each representing an external library dependency
found in the {@link #program}
@throws CancelledException if cancelled
Ghidra/Features/Base/src/main/java/ghidra/program/util/ExternalSymbolResolver.java