void () { final Sdk broken = ProjectJdkTable.getInstance().createSdk("broken-sdk-123", SimpleJavaSdkType.getInstance()); WriteAction.run(() -> { SdkModificator m = broken.getSdkModificator(); m.setHomePath("invalid home path"); m.setVersionString("11"); m.commitChanges(); ProjectJdkTable.getInstance().addJdk(broken, getTestRootDisposable()); ModifiableRootModel mod = ModuleRootManager.getInstance(getModule()).getModifiableModel(); mod.setSdk(broken); mod.commit(); }); final @NotNull List<String> panel = detectMissingSdks(); assertThat(panel).isEmpty(); }