public static Connection getCurrentConnection(final List<ConnectionClosedEventListener> listeners) {
        final ServerStream stream = ConnectionInterceptor.STREAM.get();
        if (stream != null) {
            return NettyConnectionHelper.getOrCreateConnection(stream, listeners);
        }
        return null;
    }
Intercepting incoming calls to get {@link Connection} and attach to current {@link Context}
before that are dispatched by {@link ServerCallHandler}.

@author jiachun.fjc
jraft-extension/rpc-grpc-impl/src/main/java/com/alipay/sofa/jraft/rpc/impl/ConnectionInterceptor.java