static @Nullable BookmarksManager getInstance(@Nullable Project project) {
    return project == null || project.isDisposed() ? null : project.getService(BookmarksManager.class);
  }
static @Nullable BookmarksManager getInstance(@Nullable Project project)