void (@NotNull final RunConfigurationBase runConfiguration) { final boolean isJre50; if (runConfiguration instanceof CommonJavaRunConfigurationParameters && myVersionDetector.isJre50Configured((CommonJavaRunConfigurationParameters)runConfiguration)) { isJre50 = true; } else if (runConfiguration instanceof ModuleBasedConfiguration){ isJre50 = myVersionDetector.isModuleJre50Configured((ModuleBasedConfiguration)runConfiguration); } else { isJre50 = true; } myCoverageNotSupportedLabel.setVisible(!isJre50); final JavaCoverageEnabledConfiguration configuration = (JavaCoverageEnabledConfiguration)CoverageEnabledConfiguration.getOrCreate(runConfiguration); CoverageRunner runner = configuration.getCoverageRunner(); if (runner != null) { myCoverageRunnerCb.setSelectedItem(new CoverageRunnerItem(runner)); } else { final String runnerId = configuration.getRunnerId(); if (runnerId != null){ final CoverageRunnerItem runnerItem = new CoverageRunnerItem(runnerId); final DefaultComboBoxModel<CoverageRunnerItem> model = (DefaultComboBoxModel<CoverageRunnerItem>)myCoverageRunnerCb.getModel(); if (model.getIndexOf(runnerItem) == -1) { model.addElement(runnerItem); } myCoverageRunnerCb.setSelectedItem(runnerItem); } else { myCoverageRunnerCb.setSelectedIndex(0); } runner = ((CoverageRunnerItem)Objects.requireNonNull(myCoverageRunnerCb.getSelectedItem())).getRunner(); } myRunnerPanel.setEnabled(isJre50); myClassFilterEditor.setFilters(getCoveragePatterns(configuration, true)); myExcludeClassFilterEditor.setFilters(getCoveragePatterns(configuration, false)); setUpBranchCoverage(runner, configuration.isBranchCoverageEnabled(), configuration.isTrackPerTestCoverage()); myTrackTestSourcesCb.setSelected(configuration.isTrackTestFolders()); }