public void addProjectRunners(@NotNull List<Environment> projectEnvironments){
  DefaultActionGroup runnersList=(DefaultActionGroup)actionManager.getAction(RUNNER_LIST);
  projectRunners.clear();
  clearRunnerActions(runnersList);
  projectActions.removeAll();
  systemActions.removeAll();
  for (  Environment environment : projectEnvironments) {
    projectActions.add(configRunnerFactory.createElement(environment.getName(),resources.scopeProject(),dropDownHeaderWidget));
  }
  runnersList.addSeparator();
  for (  Environment environment : systemRunners) {
    systemActions.add(configRunnerFactory.createElement(environment.getName(),resources.scopeSystem(),dropDownHeaderWidget));
  }
  runnersList.addAll(projectActions);
  runnersList.addSeparator();
  runnersList.addAll(systemActions);
  projectRunners.addAll(projectEnvironments);
  selectDefaultRunner();
}

public void addProjectRunners ( @ NotNull List < Environment > projectEnvironments ) { DefaultActionGroup runnersList = ( DefaultActionGroup ) actionManager . getAction ( RUNNER_LIST ) ; projectRunners . clear ( ) ; clearRunnerActions ( runnersList ) ; projectActions . removeAll ( ) ; systemActions . removeAll ( ) ; for ( Environment environment : projectEnvironments ) { projectActions . add ( configRunnerFactory . createElement ( environment . getName ( ) , resources . scopeProject ( ) , dropDownHeaderWidget ) ) ; } runnersList . addSeparator ( ) ; for ( Environment environment : systemRunners ) { systemActions . add ( configRunnerFactory . createElement ( environment . getName ( ) , resources . scopeSystem ( ) , dropDownHeaderWidget ) ) ; } runnersList . addAll ( projectActions ) ; runnersList . addSeparator ( ) ; runnersList . addAll ( systemActions ) ; projectRunners . addAll ( projectEnvironments ) ; selectDefaultRunner ( ) ; }
adds project environments to the list .
