void (@NotNull TestNGConfiguration config) { this.config = config; model.reset(config); commonJavaParameters.reset(config); getModuleSelector().reset(config); TestData data = config.getPersistantData(); TestSearchScope scope = data.getScope(); if (scope == TestSearchScope.SINGLE_MODULE) { packagesInModule.setSelected(true); } else if (scope == TestSearchScope.MODULE_WITH_DEPENDENCIES) { packagesAcrossModules.setSelected(true); } else { packagesInProject.setSelected(true); } evaluateModuleClassPath(); alternateJDK.setPathOrName(config.getAlternativeJrePath(), config.ALTERNATIVE_JRE_PATH_ENABLED); propertiesList.clear(); propertiesList.addAll(data.TEST_PROPERTIES.entrySet()); propertiesTableModel.setParameterList(propertiesList); listenerModel.setListenerList(data.TEST_LISTENERS); myUseDefaultReportersCheckBox.setSelected(data.USE_DEFAULT_REPORTERS); myShortenCommandLineCombo.getComponent().setSelectedItem(config.getShortenCommandLine()); myUseModulePath.getComponent().setSelected(config.isUseModulePath()); if (!project.isDefault()) { SwingUtilities.invokeLater(() -> ReadAction.nonBlocking(() -> FilenameIndex.getFilesByName(project, PsiJavaModule.MODULE_INFO_FILE, GlobalSearchScope.projectScope(project)).length > 0) .expireWith(this) .finishOnUiThread(ModalityState.stateForComponent(myUseModulePath), visible -> myUseModulePath.setVisible(visible)) .submit(NonUrgentExecutor.getInstance())); } }