private ProgramSelection copySelection(ProgramSelection selection) {
		if (selection != null) {
			InteriorSelection is = selection.getInteriorSelection();
			if (is != null) {
				InteriorSelection ih =
					new InteriorSelection(is.getFrom(), is.getTo(), is.getStartAddress(),
						is.getEndAddress());
				return new ProgramSelection(ih);
			}
		}
		return new ProgramSelection(selection);
	}
Create the actions and add them to the tool.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/highlight/SetHighlightPlugin.java