private static Spake2PlusKeyManager findFirstSpake2PlusKeyManager(KeyManager[] kms) {
        for (KeyManager km : kms) {
            if (km instanceof Spake2PlusKeyManager) {
                return (Spake2PlusKeyManager) km;
            }
        }
        return null;
    }
Returns X.509 key manager or null for none.
common/src/main/java/org/conscrypt/SSLParametersImpl.java