void () { runPythonTest(new PyExecutionFixtureTestTask(PyTestFixtureAndParametrizedTest.testSubfolder) { @Override public void runTestOn(@NotNull String sdkHome, @Nullable Sdk existingSdk) throws InvalidSdkException, ExecutionException { Sdk sdk = createTempSdk(sdkHome, SdkCreationType.SDK_PACKAGES_ONLY); PyPackageManager.getInstance(sdk).refreshAndGetPackages(true); var runnerService = TestRunnerService.getInstance(myFixture.getModule()); runnerService.setSelectedFactory(PythonTestConfigurationType.getInstance().getAutoDetectFactory()); ApplicationManager.getApplication().invokeAndWait(() -> PyTestFixtureAndParametrizedTest.Companion.testInspectionStatic(myFixture)); } }); }