protected < I > boolean accepts ( ScannerPlugin < I , ? > selectedPlugin , I item , String path , Scope scope ) { boolean accepted = false ; try { accepted = selectedPlugin . accepts ( item , path , scope ) ; } catch ( IOException e ) { LOGGER . error ( "Plugin " + selectedPlugin + " failed to check whether it can accept item " + path , e ) ; } return accepted ; }
Checks whether a plugin accepts an item .