You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: jsii_importer.rs
    path of file: ./repos/wing/libs/wingc/src/type_check
    
    the code of the file until where you have to start completion: use std::collections::BTreeMap;

use crate::{
	ast::{AccessModifier, Phase, Symbol},
	debug,
	docs::Docs,
	type_check::{
		self,
		symbol_env::{StatementIdx, SymbolEnvKind},
		Class, FunctionParameter, FunctionSignature, Interface, ResolveSource, Struct, SymbolKind, Type, TypeRef, Types,
		CLASS_INIT_NAME,
	},
	CONSTRUCT_BASE_CLASS, WINGSDK_ASSEMBLY_NAME, WINGSDK_DURATION, WINGSDK_JSON, WINGSDK_MUT_JSON, WINGSDK_
    
	fn parameter_to_wing_type(&mut self, parameter: &jsii::Parameter) -> TypeRef {
		let mut param_type = self.type_ref_to_wing_type(&parameter.type_);

		// TODO variadic parameter support https://github.com/winglang/wing/issues/397
		if parameter.variadic.unwrap_or(false) {
			param_type = self.wing_types.add_type(Type::Array(param_type));
			param_type = self.wing_types.add_type(Type::Optional(param_type));
		}

		if parameter.optional.unwrap_or(false) {
			param_type = self.wing_types.add_type(Type::Optional(param_type));
		}

		param_type
	}