void () { LanguageLevelProjectExtension extension = LanguageLevelProjectExtension.getInstance(myProject); extension.setDefault(false); extension.setLanguageLevel(LanguageLevel.JDK_1_5); myCombo.reset(myProject); myCombo.sdkUpdated(IdeaTestUtil.getMockJdk17(), false); assertEquals(LanguageLevel.JDK_1_5, myCombo.getSelectedLevel()); }