void () { final FacetErrorPanel facetErrorPanel = new FacetErrorPanel(); myErrorPanel.add(facetErrorPanel.getComponent(), BorderLayout.CENTER); facetErrorPanel.getValidatorsManager().registerValidator(new FacetEditorValidator() { @NotNull @Override public ValidationResult check() { final Sdk sdk = PythonSdkUtil.findPythonSdk(myModule); if (sdk != null) { var factory = myModel.getSelected(); if (factory != null && !factory.isFrameworkInstalled(sdk)) { return new ValidationResult(PyBundle.message("runcfg.testing.no.test.framework", factory.getName()), createQuickFix(sdk, facetErrorPanel, factory.getPackageRequired())); } } return ValidationResult.OK; } }, myTestRunnerComboBox); facetErrorPanel.getValidatorsManager().validate(); }