KotlinWithJdkAndRuntimeLightProjectDescriptor (LanguageLevel level) { return new KotlinWithJdkAndRuntimeLightProjectDescriptor() { @Override public void configureModule(@NotNull Module module, @NotNull ModifiableRootModel model) { super.configureModule(module, model); model.getModuleExtension(LanguageLevelModuleExtension.class).setLanguageLevel(level); } }; }