}
@Override
public int getIndexOfChild(Object parent, Object child) {
if (parent instanceof TreeTableNode) {
TreeTableNode failureNode = (TreeTableNode) parent;
return failureNode.getIndexOfChild(child);
} else if (parent instanceof List) {
List<?> failures = (List<?>) parent;
return failures.indexOf(child);
}
return -1;