private List<Statistics> removeFailed(List<Statistics> statistics){
  List<Statistics> result=new ArrayList<>();
  for (  Statistics statistic : statistics) {
    if (statistic.getSucceeded())     result.add(statistic);
  }
  return result;
}

private List < Statistics > removeFailed ( List < Statistics > statistics ) { List < Statistics > result = new ArrayList < > ( ) ; for ( Statistics statistic : statistics ) { if ( statistic . getSucceeded ( ) ) result . add ( statistic ) ; } return result ; }
returns a list which contains the succeeded statistic objects of the given statistics list
