private void finalizeBlockComments(Program program, long addressDelta) {
		for (Map.Entry<Address, String> entry : blockPreComments.entrySet()) {
			appendBlockComment(program, entry.getKey().add(addressDelta), entry.getValue(),
				CommentType.PRE);
		}
		for (Map.Entry<Address, String> entry : blockPostComments.entrySet()) {
			CodeUnit codeUnit =
				program.getListing().getCodeUnitContaining(entry.getKey().add(addressDelta));
			if (codeUnit == null) {
				Msg.warn(this, "PDB error: null Code unit");
			}
			else {
				Address endCodeUnitAddress = codeUnit.getAddress();
				appendBlockComment(program, endCodeUnitAddress, entry.getValue(), CommentType.POST);
			}
		}
	}
Manages the nesting of scoping blocks for functions and scoped variables.
Ghidra/Features/PDB/src/main/java/ghidra/app/util/pdb/pdbapplicator/BlockCommentsManager.java