}
boolean contains = collection.contains((T)invalid);
boolean removed = collection.remove((T)invalid);
if (contains || removed) {
System.err.println(name+" invalidity check. contains=" + contains + " removed=" + removed);
<BUG>Utils.handleError(collection);
</BUG>
return false;
}
for (int i = 0; i < data.length; i++) {

}
return true;
}
private static <T extends Comparable<T>> boolean addAndRemoveInOrder(Collection<T> collection, Class<T> type, String name,
Integer[] data, Integer _invalid) {
T invalid = Utils.parseT(_invalid, type);
for (int i = 0; i < data.length; i++) {
