code: public static <T extends Callable<?> & Parcelable> Intent foregroundTaskIntent(final Context context,
                                                                                   final T task,
                                                                                   final int notificationId,
                                                                                   final Notification notification) {
      return foregroundTaskIntent(context, Goro.DEFAULT_QUEUE, task, notificationId, notification);
    }
docs: Create an intent that contains a task that should be scheduled
  on a defined queue. The Service will run in the foreground and display notification.
  Intent can be used as an argument for
  {@link android.content.Context#startService(android.content.Intent)}
  or {@link android.content.Context#startForegroundService(Intent)}
  
  @param context context instance
  @param task task instance
  @param <T> task type
  @param notificationId id of notification for foreground Service, must not be 0
  @param notification notification for foreground Service,
  should be not null to start service in the foreground