@@ -0,0 +1,1767 @@
+package com.stolets.rxdiffutil.diffrequest;%0A%0Aimport android.app.Activity;%0Aimport android.support.annotation.NonNull;%0Aimport android.support.v7.app.AppCompatActivity;%0A%0Aimport com.stolets.rxdiffutil.internal.Constants;%0Aimport com.stolets.rxdiffutil.util.ActivityUtils;%0Aimport com.stolets.rxdiffutil.util.SupportActivityUtils;%0A%0Aimport static com.stolets.rxdiffutil.internal.Preconditions.checkNotNull;%0A%0A/**%0A * The class used to retrieve the diff request manager from the retained fragment.%0A */%0Afinal class DiffRequestManagerRetriever %7B%0A    /**%0A     * Determines the activity type (system or from the support library) and retrieves the %7B@link DiffRequestManager%7D from the appropriate retained fragment.%0A     * @param activity %7B@link Activity%7D request lifecycle is bound to.%0A     * @return %7B@link DiffRequestManager%7D.%0A     */%0A    @NonNull%0A    static DiffRequestManager retrieve(@NonNull final Activity activity) %7B%0A        checkNotNull(activity, %22activity must not be null%22);%0A        return findOrCreateManager(activity);%0A    %7D%0A%0A    @NonNull%0A    private static DiffRequestManager findOrCreateManager(@NonNull final Activity activity) %7B%0A        if (activity instanceof AppCompatActivity) %7B%0A            final AppCompatActivity compatActivity = (AppCompatActivity) activity;%0A            return ((SupportDiffRequestManagerFragment) SupportActivityUtils.%0A                    findOrCreateSupportFragment(compatActivity.getSupportFragmentManager(), Constants.RETAINED_FRAGMENT_TAG)).%0A                    getDiffRequestManager();%0A        %7D else %7B%0A            return ((DiffRequestManagerFragment) ActivityUtils.%0A                    findOrCreateFragment(activity.getFragmentManager(), Constants.RETAINED_FRAGMENT_TAG)).%0A                    getDiffRequestManager();%0A        %7D%0A    %7D%0A%7D%0A

Add DIffRequestManagerRetriever helper class