code: public static void show(@NonNull Snackbar snackbar) {
          try {
              show(snackbar, (Activity) snackbar.getContext());
          } catch (ClassCastException e) {
              Log.e(TAG, "Couldn't get Activity from the Snackbar's Context. Try calling " +
                      "#show(Snackbar, Activity) instead", e);
          }
      }
docs: Displays a {@link com.nispok.snackbar.Snackbar} in the current {@link Activity}, dismissing
  the current Snackbar being displayed, if any. Note that the Activity will be obtained from
  the Snackbar's {@link android.content.Context}. If the Snackbar was created with
  {@link android.app.Activity#getApplicationContext()} then you must explicitly pass the target
  Activity using {@link #show(Snackbar, android.app.Activity)}
  
  @param snackbar instance of {@link com.nispok.snackbar.Snackbar} to display