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