private DomainObjectListener createDomainObjectListener() {
		// @formatter:off
		DomainObjectListenerBuilder builder = new DomainObjectListenerBuilder(this);
		return builder
			.any(RESTORED, MEMORY_BLOCK_MOVED, MEMORY_BLOCK_REMOVED).terminate(this::reload)
			.any(BOOKMARK_TYPE_REMOVED).call(() ->repaintMgr.update())
			.with(ProgramChangeRecord.class)
				.each(BOOKMARK_REMOVED).call(this::bookmarkRemoved)
				.each(BOOKMARK_ADDED).call(this::bookmarkAdded)
				.each(BOOKMARK_CHANGED).call(this::bookmarkChanged)
				.each(BOOKMARK_TYPE_ADDED).call(this::typeAdded)
			.build();
		// @formatter:on
	}
Plugin to for adding/deleting/editing bookmarks.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/bookmark/BookmarkPlugin.java