private void offerRestart(@NotNull Task<?, ?> task, int attempt) {
    if (task.canRestart(disposed, attempt)) {
      offerSafely(task, attempt + 1, 10);
      if (LOG.isTraceEnabled()) LOG.debug("Task is restarted");
    }
  }
private void offerRestart(@NotNull Task<?, ?> task, int attempt)