private String getAttsString(ClassFieldMsAttributes msAtts) {
		// Note that the conversion here incorporates multiple MS atts into Virtual.  If that
		//  changes, we need to change logic here too
		ClassFieldAttributes atts = ClassFieldAttributes.convert(msAtts, Access.BLANK);
		if (atts.getAccess().equals(Access.PUBLIC)) {
			return Property.VIRTUAL.equals(atts.getProperty()) ? "publicVirtualAttributes"
					: "publicDirectAttributes";
		}
		if (atts.getAccess().equals(Access.PRIVATE)) {
			return Property.VIRTUAL.equals(atts.getProperty()) ? "privateVirtualAttributes"
					: "privateDirectAttributes";
		}
		if (atts.getAccess().equals(Access.PROTECTED)) {
			return Property.VIRTUAL.equals(atts.getProperty()) ? "protectedVirtualAttributes"
					: "protectedDirectAttributes";
		}
		return "UNHANDLED_ATTRIBUTES";
	}
Developer script to capture items from Program and PDB for developing tests
Ghidra/Features/PDB/developer_scripts/CaptureHelperScript.java