private static void sortAnonymous(List<IType> anonymous,IType anonType){
  SourceOffsetComparator sourceComparator=new SourceOffsetComparator();
  final AnonymClassComparator classComparator=new AnonymClassComparator(anonType,sourceComparator);
  Collections.sort(anonymous,classComparator);
}

private static void sortAnonymous ( List < IType > anonymous , IType anonType ) { SourceOffsetComparator sourceComparator = new SourceOffsetComparator ( ) ; final AnonymClassComparator classComparator = new AnonymClassComparator ( anonType , sourceComparator ) ; Collections . sort ( anonymous , classComparator ) ; }
sort given anonymous classes in order like java compiler would generate output classes , in context of given anonymous type
