private String getPdbVirtualMethods() throws CancelledException {
		File pdbFile = locatePdbFile();
		if (pdbFile == null) {
			return "";
		}
		Map<SymbolPath, List<String>> info = getPdbMethodInfo(pdbFile);
		StringBuilder builder = new StringBuilder();
		for (Map.Entry<SymbolPath, List<String>> entry : info.entrySet()) {
			SymbolPath classPath = entry.getKey();
			builder.append("------------------------------\n");
			builder.append(classPath.getPath());
			builder.append('\n');
			for (String methodInfo : entry.getValue()) {
				builder.append(methodInfo);
				builder.append('\n');
			}
		}
		return builder.toString();
	}
Developer script to capture items from Program and PDB for developing tests
Ghidra/Features/PDB/developer_scripts/CaptureHelperScript.java