Impact impact = (Impact)impacts.get(i);
ImpactComponent impact = (ImpactComponent)impacts.get(i);
  private List getAgentsInImpacts() {    List agents = new ArrayList();    for (int i = 0; i < impacts.size(); i++) {      Impact impact = (Impact)impacts.get(i);      agents.addAll(Arrays.asList(impact.getAgents()));    }    return agents;  }