@VisibleForTesting
    static Stream<URL> scanFor(final String name, ClassLoader... classLoaders) {
        return Stream
            .of(classLoaders)
            .flatMap(classLoader -> getAllPropertyFilesOnClassloader(classLoader, name))
            .filter(Objects::nonNull)
            .sorted(
                Comparator
                    .comparing(ClasspathScanner::filesFileSchemeFirst) // resolve 'local' files first
                    .thenComparing(URL::toString) // sort alphabetically for the sake of determinism
            )
            .distinct();
    }
Utility for identifying resource files on classloaders.
core/src/main/java/org/testcontainers/utility/ClasspathScanner.java