private Collection < Facet > filter ( Collection < Facet > facets ) { if ( NotStopWordPredicate == null ) { return facets ; } return facets . stream ( ) . filter ( NotStopWordPredicate ) . collect ( Collectors . toList ( ) ) ; }
Filter stop word facets