void () { new SdkTestCases() { { WriteAction.run(() -> { ModifiableRootModel m = ModuleRootManager.getInstance(getModule()).getModifiableModel(); m.inheritSdk(); m.commit(); ProjectRootManager.getInstance(getProject()).setProjectSdk(valid); }); final List<String> panel = detectMissingSdks(); assertThat(panel).isEmpty(); } }; }