code: public static Navigate from(@NonNull Context context) {
          final Activity activity = ContextHelper.asActivity(context);
          if (activity != null) {
              return from(activity);
          } else {
              return new Navigate(ContextHelper.asApplication(context), null, null, null);
          }
      }
docs: Initiates navigation starting from given context.<br/>
  Note, that if this is not an activity context then you can't use {@link #forResult(int)},
  {@link #animate(Transitions)} and all the {@link #finish() finish(...)}
  and {@link #navigateUp(Intent) navigateUp(...)} methods.