@ NotNull public FileFilter getFileFilter ( ) { if ( fileFilter == null ) { final List < IOFileFilter > filters = new ArrayList <> ( ) ; final Parsers parsers = config . getParsers ( ) ; if ( parsers != null ) { final List < ParserConfig > parserConfigs = parsers . getList ( ) ; if ( parserConfigs != null ) { for ( final ParserConfig pc : parserConfigs ) { final Parser < Object > pars = pc . getParser ( ) ; if ( pars instanceof IncrementalParser ) { final IncrementalParser < ? > parser = ( IncrementalParser < ? > ) pars ; filters . add ( parser . getFileFilter ( ) ) ; } } } } fileFilter = new OrFileFilter ( filters ) ; } return fileFilter ; }
Returns a file filter that combines all filters for all incremental parsers . It should be used for selecting the appropriate files .