@Override public int compare(ModelObject arg0, ModelObject arg1) { CatchBlock m = (CatchBlock) arg0; CatchBlock e = (CatchBlock) arg1; if (m.size() != e.size()) { return (1); } if (m.getParticipants().size() != e.getParticipants().size()) { return (1); } TypeReferenceComparator trefcomp = (TypeReferenceComparator) ComparatorUtil.getComparator(TypeReference.class); if (trefcomp.compare(m.getType(), e.getType()) != 0) { return (1); } return (0); }