if (parent.hasChildren()) {
parent.addChildBefore(newInstrumentationNode(getActualLineNumber(node)), node);
} else {
// if, else, while, do, for without {} around their respective 'blocks' for some reason
// don't have children. Meh. Creating blocks to ease instrumentation.
final Block block = newInstrumentedBlock(node);
if (parentType == IF) {
final IfStatement ifStatement = (IfStatement) parent;
if (ifStatement.getThenPart() == node) {