@Override
  public Filter[] getCustomExecutionFilters(@NotNull Project project,
                                            @NotNull ExternalSystemTask task,
                                            @Nullable ExecutionEnvironment env) {
    if (task instanceof ExternalSystemExecuteTaskTask) {
      return new Filter[]{new ReRunTaskFilter((ExternalSystemExecuteTaskTask)task, env)};
    }
    else if (task instanceof ExternalSystemResolveProjectTask) {
      return new Filter[]{new ReRunSyncFilter((ExternalSystemResolveProjectTask)task, project)};
    }
    return Filter.EMPTY_ARRAY;
  }
@Override
  public Filter[] getCustomExecutionFilters(@NotNull Project project,
                                            @NotNull ExternalSystemTask task,
                                            @Nullable ExecutionEnvironment env)