private Set<Address> getFunctionAddressesFromVfts(Map<Address, NameAndBytes> info) {
		Set<Address> results = new TreeSet<>();
		for (Map.Entry<Address, NameAndBytes> entry : info.entrySet()) {
			Address addr = entry.getKey();
			int spaceId = addr.getAddressSpace().getSpaceID();
			NameAndBytes nab = entry.getValue();
			byte[] bytes = nab.bytes();
			if (bytes.length % pointerSize != 0) {
				// problem
			}
			int num = bytes.length / pointerSize;
			for (int ordinal = 0; ordinal < num; ordinal++) {
				long offset = getOffset(bytes, ordinal);
				Address functionAddress = addressFactory.getAddress(spaceId, offset);
				if (ignoreAddress(functionAddress)) {
					break;
				}
				results.add(functionAddress);
			}
		}
		return results;
	}
Developer script to capture items from Program and PDB for developing tests
Ghidra/Features/PDB/developer_scripts/CaptureHelperScript.java