public static int findHighestMajorVersion(Collection<Throwable> list){
  int result=0;
  for (  Throwable t : list) {
    if (t instanceof InconvertibleClassError) {
      InconvertibleClassError error=(InconvertibleClassError)t;
      result=Math.max(result,error.getMajor());
    }
  }
  return result;
}

public static int findHighestMajorVersion ( Collection < Throwable > list ) { int result = 0 ; for ( Throwable t : list ) { if ( t instanceof InconvertibleClassError ) { InconvertibleClassError error = ( InconvertibleClassError ) t ; result = Math . max ( result , error . getMajor ( ) ) ; } } return result ; }
given a set of exceptions , return the highest known classfile version format
