public static ConsoleParser [ ] filterExisting ( final Collection < ? extends ConsoleParser > parsers ) { List < ConsoleParser > existing = Lists . newArrayList ( ) ; for ( ConsoleParser parser : parsers ) { if ( ParserRegistry . exists ( parser . getParserName ( ) ) ) { existing . add ( parser ) ; } } return existing . toArray ( new ConsoleParser [ existing . size ( ) ] ) ; }
Removes non - existing parsers from the specified list .