private static boolean isSynchronous(Task.Backgroundable backgroundable) {
    return backgroundable.isConditionalModal() && !backgroundable.shouldStartInBackground();
  }
private static boolean isSynchronous(Task.Backgroundable backgroundable)