private Snackbar.SnackbarLayout getSnackBarInstance(CoordinatorLayout parent, V child) {
        final List<View> dependencies = parent.getDependencies(child);
        for (int i = 0, z = dependencies.size(); i < z; i++) {
            final View view = dependencies.get(i);
            if (view instanceof Snackbar.SnackbarLayout) {
                return (Snackbar.SnackbarLayout) view;
            }
        }
        return null;
    }
Class description

@author ashokvarma
@version 1.0
@see VerticalScrollingBehavior
@since 25 Mar 2016
common/src/main/java/com/sxjs/common/widget/bottomnavigation/behaviour/BottomVerticalScrollBehavior.java