void write(JsonArray results, AddressSetView set, TaskMonitor monitor) throws IOException, CancelledException {
		if (set == null) {
			set = program.getMemory();
		}

		monitor.setMessage("Exporting References...");
		AddressIterator iter = refManager.getReferenceSourceIterator(set, true);
		List<Address> request = new ArrayList<>();
		while (iter.hasNext()) {
			request.add(iter.next());
		}
		writeAsSARIF(program, request, results);
		writeAsSARIF(program, set, results);
	}
@param result
@param language
@param overwrite
Ghidra/Features/Sarif/src/main/java/sarif/managers/MarkupSarifMgr.java