@Override
	public ProgramLocation[] getPreCommentLocations() {
		ProgramLocation[] locs = new ProgramLocation[2];

		Address a = addr(0x100101c);
		CodeUnit cu = program.getListing().getCodeUnitAt(a);
		String[] comment = cu.getCommentAsArray(CommentType.PRE);
		locs[0] = new CommentFieldLocation(program, a, null, comment, CommentType.PRE, 0, 5);

		a = addr(0x10030e4);
		cu = program.getListing().getCodeUnitAt(a);
		comment = cu.getCommentAsArray(CommentType.PRE);
		locs[1] = new CommentFieldLocation(program, a, null, comment, CommentType.PRE, 0, 5);
		return locs;
	}
Toggle open composite locations within Code Browser
which have locations generated
@param cb
Ghidra/Features/Base/src/test/java/ghidra/app/SampleLocationGenerator.java