@Override
	public void removeBookmark(Bookmark bookmark) {
		lock.acquire();
		try {
			if (bookmark instanceof BookmarkDB) {
				BookmarkDB bm = (BookmarkDB) bookmark;
				BookmarkTypeDB type = (BookmarkTypeDB) bm.getType();
				int typeId = type.getTypeId();
				doRemoveBookmark(bm);
				if (bookmarkAdapter.getBookmarkCount(typeId) == 0) {
					removeBookmarks(type.getTypeString());
				}
			}
		}
		finally {
			lock.release();
		}
	}
Update stored bookmark and fire program change event for a bookmark which has
had its category or comment changed.  All other fields are immutable.
@param bm bookmark
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/bookmark/BookmarkDBManager.java