public void removeMatchingSnackbars(SnackbarController controller){
  boolean isFound=false;
  Snackbar[] snackbars=new Snackbar[mStack.size()];
  mStack.toArray(snackbars);
  for (  Snackbar snackbar : snackbars) {
    if (snackbar.getController() == controller) {
      mStack.remove(snackbar);
      isFound=true;
    }
  }
  if (!isFound)   return;
  finishSnackbarRemoval(controller);
}

public void removeMatchingSnackbars ( SnackbarController controller ) { boolean isFound = false ; Snackbar [ ] snackbars = new Snackbar [ mStack . size ( ) ] ; mStack . toArray ( snackbars ) ; for ( Snackbar snackbar : snackbars ) { if ( snackbar . getController ( ) == controller ) { mStack . remove ( snackbar ) ; isFound = true ; } } if ( ! isFound ) return ; finishSnackbarRemoval ( controller ) ; }
removes all snackbars that have a certain controller .
