private List<Unit> collectDefinitions(Local l,LocalDefs localDefs,Body body){
  List<Unit> defs=new ArrayList<Unit>();
  for (  Unit u : body.getUnits()) {
    List<Unit> defsOf=localDefs.getDefsOfAt(l,u);
    if (defsOf != null)     defs.addAll(defsOf);
  }
  for (  Unit u : defs) {
    Debug.printDbg("[add def] ",u);
  }
  return defs;
}

private List < Unit > collectDefinitions ( Local l , LocalDefs localDefs , Body body ) { List < Unit > defs = new ArrayList < Unit > ( ) ; for ( Unit u : body . getUnits ( ) ) { List < Unit > defsOf = localDefs . getDefsOfAt ( l , u ) ; if ( defsOf != null ) defs . addAll ( defsOf ) ; } for ( Unit u : defs ) { Debug . printDbg ( "[add def] " , u ) ; } return defs ; }
convenience method that collects all definitions of l .
