Node thenBody = node.getThenBody(); if (thenBody != null) { thenBody.accept(this);
if (node.getThenBody() != null) { node.getThenBody().accept(this);
    public void visitIfNode(IfNode node) {        visitNode(node);        Node thenBody = node.getThenBody();        if (thenBody != null) {            thenBody.accept(this);        }    }