private void copyMethods(ConsumerConfig<T> consumerConfig, ReferenceConfig<T> referenceConfig) {
        Map<String, MethodConfig> methodConfigs = consumerConfig.getMethods();
        if (CommonUtils.isNotEmpty(methodConfigs)) {
            List<org.apache.dubbo.config.MethodConfig> dubboMethodConfigs = new ArrayList<>();
            for (Map.Entry<String, MethodConfig> entry : methodConfigs.entrySet()) {
                MethodConfig methodConfig = entry.getValue();
                org.apache.dubbo.config.MethodConfig dubboMethodConfig = new org.apache.dubbo.config.MethodConfig();
                dubboMethodConfig.setName(methodConfig.getName());
                dubboMethodConfig.setParameters(methodConfig.getParameters());
                dubboMethodConfig.setTimeout(methodConfig.getTimeout());
                dubboMethodConfig.setRetries(methodConfig.getRetries());
                String invokeType = methodConfig.getInvokeType();
                if (invokeType != null) {
                    if (RpcConstants.INVOKER_TYPE_ONEWAY.equals(invokeType)) {
                        dubboMethodConfig.setReturn(false);
                    }
                    if (RpcConstants.INVOKER_TYPE_CALLBACK.equals(invokeType)
                        || RpcConstants.INVOKER_TYPE_FUTURE.equals(invokeType)) {
                        dubboMethodConfig.setAsync(true);
                    }
                }
                dubboMethodConfigs.add(dubboMethodConfig);
            }
            referenceConfig.setMethods(dubboMethodConfigs);
        }
    }
Refer t.

@return the t
@throws SofaRpcRuntimeException the init error exception
bootstrap/bootstrap-dubbo/src/main/java/com/alipay/sofa/rpc/bootstrap/dubbo/DubboConsumerBootstrap.java