@Override
    public void close() {
        Plugins.compareAndSwapLoaders(savedLoader);
    }
Helper for having {@code Plugins} use a given classloader within a try-with-resources statement.
See {@link Plugins#withClassLoader(ClassLoader)}.
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/isolation/LoaderSwap.java