@Override
	public Bookmark[] getBookmarks(Address addr) {
		lock.acquire();
		try {
			int n = typesArray.getLastNonEmptyIndex();
			List<Bookmark> list = new ArrayList<>();
			for (int i = 0; i <= n; i++) {
				BookmarkTypeDB bmt = (BookmarkTypeDB) typesArray.get(i);
				if (bmt != null && bmt.hasBookmarks()) {
					getBookmarks(addr, i, list);
				}
			}
			Bookmark[] bookmarks = new Bookmark[list.size()];
			list.toArray(bookmarks);
			return bookmarks;
		}
		finally {
			lock.release();
		}
	}
Get bookmark record (used by Bookmark.refresh() method)
@param id bookmark ID
@return bookmark record
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/bookmark/BookmarkDBManager.java