void (Element root, JpsModule model, @Nullable JpsSdkType<?> projectSdkType) { final String inheritJdk = root.getAttributeValue("inheritJdk"); final JpsDependenciesList dependenciesList = model.getDependenciesList(); if (inheritJdk != null && Boolean.parseBoolean(inheritJdk)) { dependenciesList.addSdkDependency(projectSdkType != null ? projectSdkType : JpsJavaSdkType.INSTANCE); } else { final String jdkName = root.getAttributeValue("jdk"); if (jdkName != null) { String jdkType = root.getAttributeValue("jdk_type"); JpsSdkType<?> sdkType = null; if (jdkType != null) { sdkType = JpsSdkTableSerializer.getSdkType(jdkType); } if (sdkType == null) { sdkType = JpsJavaSdkType.INSTANCE; } dependenciesList.addSdkDependency(sdkType); JpsSdkTableSerializer.setSdkReference(model.getSdkReferencesTable(), jdkName, sdkType); if (sdkType instanceof JpsJavaSdkTypeWrapper) { dependenciesList.addSdkDependency(JpsJavaSdkType.INSTANCE); } } } }