@Override
		public boolean applyTo(Program program, TaskMonitor monitor) {
			boolean wasEabled = program.isSendingEvents();
			try {
				program.setEventsEnabled(false);
				return doApplyTo(program, monitor);
			}
			finally {
				program.setEventsEnabled(wasEabled);
			}

		}
Class for the combo box model to hold list of categories.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/bookmark/BookmarkProvider.java