public PluginScanResult discoverPlugins(Set<PluginSource> sources) {
        long startMs = System.currentTimeMillis();
        List<PluginScanResult> results = new ArrayList<>();
        for (PluginSource source : sources) {
            results.add(scanUrlsAndAddPlugins(source));
        }
        long endMs = System.currentTimeMillis();
        log.info("Scanning plugins with {} took {} ms", getClass().getSimpleName(), endMs - startMs);
        return new PluginScanResult(results);
    }
Entry point for plugin scanning. Discovers plugins present in any of the provided plugin sources.
<p>See the implementation-specific documentation for the conditions for a plugin to appear in this result.
@param sources to scan for contained plugins
@return A {@link PluginScanResult} containing all plugins which this scanning implementation could discover.
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/isolation/PluginScanner.java