void (@NotNull Bookmark bookmark) { ThreadingAssertions.assertEventDispatchThread(); final int index = bookmark.index; if (index > 0) { Bookmark other = ContainerUtil.find(myBookmarks.values(), b -> b.index == index - 1); other.index = index; bookmark.index = index - 1; EventQueue.invokeLater(() -> { getPublisher().bookmarkChanged(bookmark); getPublisher().bookmarkChanged(other); }); } }