private static OpenSSLSocketFactoryImpl toConscrypt(SSLSocketFactory factory) {
        if (!isConscrypt(factory)) {
            throw new IllegalArgumentException(
                    "Not a conscrypt socket factory: " + factory.getClass().getName());
        }
        return (OpenSSLSocketFactoryImpl) factory;
    }
Indicates whether the given {@link SSLSocketFactory} was created by this distribution of
Conscrypt.
common/src/main/java/org/conscrypt/Conscrypt.java