public void removeBookmark(@NotNull Bookmark bookmark) {
    ThreadingAssertions.assertEventDispatchThread();
    VirtualFile file = bookmark.getFile();
    if (myBookmarks.remove(file, bookmark)) {
      int index = bookmark.index;
      // decrement all other indices to maintain them monotonic
      myBookmarks.values().forEach(b -> b.index -= b.index > index ? 1 : 0);
      bookmark.release();
      getPublisher().bookmarkRemoved(bookmark);
    }
  }
public void removeBookmark(@NotNull Bookmark bookmark)