boolean (@NotNull final PsiElement anchor) { final Module module = ModuleUtilCore.findModuleForPsiElement(anchor); if (module == null) { return true; } var sdk = PythonSdkUtil.findPythonSdk(module); if (sdk == null) { return true; } var factory = TestRunnerService.getInstance(module).getSelectedFactory(); return factory.onlyClassesAreSupported(sdk); }