Sdk (@NotNull PythonSdkFlavor flavor, @NotNull String versionOutput) { final String versionString = flavor.getVersionStringFromOutput(versionOutput); final ProjectJdkImpl sdk = new ProjectJdkImpl("Test", PythonSdkType.getInstance(), "/path/to/sdk", versionString); sdk.setSdkAdditionalData(new PythonSdkAdditionalData(flavor)); disposeOnTearDown(sdk); return sdk; }