private String getMethodString(AbstractPdb pdb, int adjuster, int offset, String methodName,
			AbstractMemberFunctionMsType memberFunc) {
		return String.format(
			"struct.addVirtualMethod(%d, %d, new SymbolPath(classSp, \"%s\"), %s);",
			adjuster, offset, methodName, getSig(pdb, memberFunc));
	}
Developer script to capture items from Program and PDB for developing tests
Ghidra/Features/PDB/developer_scripts/CaptureHelperScript.java