T invalid = Utils.parseT(_invalid, type);
boolean contains = heap.contains(invalid);
T removed = heap.remove(invalid);
if (contains || (removed!=null)) {
System.err.println(name+" invalidity check. contains=" + contains + " removed=" + removed);
<BUG>Utils.handleError(heap);
</BUG>
return false;
}
int size = heap.size();

T invalid = Utils.parseT(_invalid, type);
boolean contains = heap.contains(invalid);
T removed = heap.remove(invalid);
if (contains || (removed!=null)) {
System.err.println(name+" invalidity check. contains=" + contains + " removed=" + removed);
Utils.handleError(_invalid,heap);
return false;
}
int size = heap.size();
