@Override
  public void finish(@NotNull TaskInfo task) {
    if (lastFraction != 0) { // we should call setProgress at least once before
      UIUtil.invokeLaterIfNeeded(() -> {
        AppIcon appIcon = AppIcon.getInstance();
        if (appIcon.hideProgress(myProject, "indexUpdate")) {
          if (Registry.is("ide.appIcon.requestAttention.after.indexing", false)) {
            appIcon.requestAttention(myProject, false);
          }
          appIcon.setOkBadge(myProject, true);
        }
      });
    }
  }
@Override
  public void finish(@NotNull TaskInfo task)