private PluginEvent createProgramSelectionEvent(boolean multiSelection) {
		ProgramLocation programLoc = plugin.getProgramLocation();
		Address currentAddress = programLoc.getAddress();
		Address nextAddress = currentAddress;

		if (multiSelection) {
			nextAddress = currentAddress.next();
		}

		ProgramSelection selection = new ProgramSelection(currentAddress, nextAddress);
		return new ProgramSelectionPluginEvent("CodeBrowserPlugin", selection, program);
	}
Creates a {@link ProgramSelectionPluginEvent} to simulate selecting a
single address or multiple addresses in the code browser plugin.

@param  multiSelection True creates an event for multiple selections.
@return The created event.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/disassembler/DisassembledViewPluginTest.java