private Set<String> toAccountNameSet(Account[] accountList){
  Set<String> actualAccounts=new HashSet<String>(accountList.length);
  for (  Account account : accountList) {
    actualAccounts.add(account.name);
  }
  return actualAccounts;
}

private Set < String > toAccountNameSet ( Account [ ] accountList ) { Set < String > actualAccounts = new HashSet < String > ( accountList . length ) ; for ( Account account : accountList ) { actualAccounts . add ( account . name ) ; } return actualAccounts ; }
converts an array of accounts into a set of account names .
