@Override
  protected void applyEditorTo(@NotNull MavenRunConfiguration runConfiguration) throws ConfigurationException {
    String targetName = MavenRunConfiguration.getTargetName(this);
    boolean localTarget = targetName == null;
    myUseProjectSettings.setEnabled(localTarget);
    if (!localTarget) {
      myUseProjectSettings.setSelected(false);
      myUseProjectSettings.setToolTipText(MavenConfigurableBundle.message("maven.settings.on.targets.general.use.project.settings.tooltip"));
    } else {
      myUseProjectSettings.setToolTipText(MavenConfigurableBundle.message("maven.settings.general.use.project.settings.tooltip"));
    }

    if (myUseProjectSettings.isSelected()) {
      runConfiguration.setGeneralSettings(null);
    }
    else {
      MavenGeneralSettings generalSettings = runConfiguration.getGeneralSettings();
      myPanel.applyTargetEnvironmentConfiguration(runConfiguration.getProject(), targetName);
      if (generalSettings != null) {
        myPanel.setData(generalSettings);
      }
      else {
        MavenGeneralSettings settings = MavenProjectsManager.getInstance(myProject).getGeneralSettings().clone();
        myPanel.setData(settings);
        runConfiguration.setGeneralSettings(settings);
      }
    }
  }
@Override
  protected void applyEditorTo(@NotNull MavenRunConfiguration runConfiguration)