private boolean init() {
		if (currentProgram == null) {
			println("No Program Open");
			return false;
		}
		addressFactory = currentProgram.getAddressFactory();
		memory = currentProgram.getMemory();
		progMaxAddr = memory.getMaxAddress();
		symbolManager = (SymbolManager) currentProgram.getSymbolTable();
		functionManager = currentProgram.getFunctionManager();
		dataOrganization = currentProgram.getDataTypeManager().getDataOrganization();
		dataConverter = DataConverter.getInstance(dataOrganization.isBigEndian());
		pointerSize = dataOrganization.getPointerSize();
		vbtInfo = new TreeMap<>();
		vftInfo = new TreeMap<>();
		functionInfo = new TreeMap<>();
		signatureInfo = new TreeMap<>();
		return true;
	}
Developer script to capture items from Program and PDB for developing tests
Ghidra/Features/PDB/developer_scripts/CaptureHelperScript.java