question: public static < T extends Collection < String > > T removeMatching ( String pattern , T strings ) { for ( Iterator < String > iter = strings . iterator ( ) ; iter . hasNext ( ) ; ) { String s = iter . next ( ) ; if ( s . matches ( pattern ) ) iter . remove ( ) ; } return strings ; }
target:  Removed from the collection all strings that match the given pattern. Returns the modified collection, for easier chaining.