SettingsEditor<RunnerAndConfigurationSettings> (@NotNull RunnerAndConfigurationSettings settings) { SettingsEditor<?> configurationEditor = settings.getConfiguration().getConfigurationEditor(); //noinspection unchecked return configurationEditor instanceof RunConfigurationFragmentedEditor<?> ? new RunnerAndConfigurationSettingsEditor(settings, (RunConfigurationFragmentedEditor<RunConfigurationBase<?>>)configurationEditor) : new ConfigurationSettingsEditorWrapper(settings, (SettingsEditor<RunConfiguration>)configurationEditor); }