code: 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;
      }
docs: Checks whether a plugin accepts an item.
  
  @param selectedPlugin
  The plugin.
  @param item
  The item.
  @param path
  The path.
  @param scope
  The scope.
  @param <I>
  The item type.
  @return <code>true</code> if the plugin accepts the item for scanning.