private static <T> void setAttributeValue(final LoadBalancer.Subchannel subchannel,
                                              final Attributes.Key<Ref<T>> key,
                                              final T newValue) {
        final Ref<T> targetRef = subchannel.getAttributes().get(key);
        if (Objects.nonNull(targetRef)) {
            targetRef.value = newValue;
        }
    }
SetStateInfo.

@param subchannel subchannel
@param value      value
shenyu-plugin/shenyu-plugin-proxy/shenyu-plugin-rpc/shenyu-plugin-grpc/src/main/java/org/apache/shenyu/plugin/grpc/loadbalance/SubChannels.java