@ NotNull public final List < GeneratorConfig > findGeneratorsForParser ( @ NotNull final String parserName ) { Contract . requireArgNotNull ( "parserName" , parserName ) ; final List < GeneratorConfig > list = new ArrayList <> ( ) ; final List < GeneratorConfig > gcList = generators . getList ( ) ; for ( final GeneratorConfig gc : gcList ) { if ( gc . getParser ( ) . equals ( parserName ) ) { list . add ( gc ) ; } } return list ; }
Find all generators that are connected to a given parser .