void () { WriteAction.run(() -> { ProjectRootManager.getInstance(getProject()).setProjectSdkName("missingSDK", JavaSdk.getInstance().getName()); }); final List<String> fixes = detectMissingSdks(); assertThat(fixes) .withFailMessage(String.valueOf(fixes)) .hasSize(1) .first().asString().startsWith("SdkFixInfo:"); }