private KotlinBuiltIns() { builtInsModule = new ModuleDescriptorImpl( Name.special("<built-ins lazy module>"), Collections.<ImportPath>emptyList(), PlatformToKotlinClassMap.EMPTY); builtinsPackageFragment = new BuiltinsPackageFragment( BUILT_INS_PACKAGE_FQ_NAME, new LockBasedStorageManager(), builtInsModule, new Function1<String, InputStream>() { @Override public InputStream invoke(String path) { return KotlinBuiltIns.class.getClassLoader().getResourceAsStream(path); } }); builtInsModule.initialize(builtinsPackageFragment.getProvider()); builtInsModule.addDependencyOnModule(builtInsModule); builtInsModule.seal(); primitiveTypeToNullableJetType = new EnumMap<PrimitiveType, JetType>(PrimitiveType.class); primitiveTypeToArrayJetType = new EnumMap<PrimitiveType, JetType>(PrimitiveType.class); primitiveJetTypeToJetArrayType = new HashMap<JetType, JetType>(); jetArrayTypeToPrimitiveJetType = new HashMap<JetType, JetType>(); }