private void collectCompatibleExceptions(ClassDoc[] froms,ClassDoc[] withs,List<ClassDoc> list){
  for (  ClassDoc from : froms) {
    if (!list.contains(from)) {
      for (      ClassDoc with : withs) {
        if (from.subclassOf(with)) {
          list.add(from);
          break;
        }
      }
    }
  }
}

private void collectCompatibleExceptions ( ClassDoc [ ] froms , ClassDoc [ ] withs , List < ClassDoc > list ) { for ( ClassDoc from : froms ) { if ( ! list . contains ( from ) ) { for ( ClassDoc with : withs ) { if ( from . subclassOf ( with ) ) { list . add ( from ) ; break ; } } } } }
adds to the supplied list all exceptions in the " froms " array that are subclasses of an exception in the " withs " array .
