@Override
  public void addActivity(final @NotNull Project project,
                          final @NotNull UiActivity activity,
                          final @NotNull ModalityState effectiveModalityState) {
    if (!isActive()) return;


    UIUtil.invokeLaterIfNeeded(() -> getBusyContainer(project).addActivity(activity, effectiveModalityState));
  }
@Override
  public void addActivity(final @NotNull Project project,
                          final @NotNull UiActivity activity,
                          final @NotNull ModalityState effectiveModalityState)