void () { WriteAction.run(() -> { ProjectRootManager.getInstance(getProject()).setProjectSdkName("missingSDK", "foo-bar-baz"); }); final List<String> fixes = detectMissingSdks(); assertThat(fixes) .withFailMessage(String.valueOf(fixes)) .isEmpty(); }