void () { UIUtil.invokeAndWaitIfNeeded(() -> { try { LanguageLevelProjectExtension.getInstance(myFixture.getProject()).setLanguageLevel(myLanguageLevel); myFixture.tearDown(); myFixture = null; } catch (Exception e) { throw new RuntimeException(e); } }); }