void (@NotNull String sdkName, @NotNull SdkType type, @NotNull String home) { new SetupProjectSdkCommand("command-name " + sdkName + " " + type.getName() + " \"" + home + "\"", 1) { @Override protected void registerNewSdk(@NotNull Sdk newSdk) { ProjectJdkTable.getInstance().addJdk(newSdk, getTestRootDisposable()); } }.computePromise(System.out::println, getProject()); }