@Override
public Void visitIfElseStatement(final IfElseStatement node, final Void data) {
super.visitIfElseStatement(node, data);
final Statement falseStatement = node.getFalseStatement();
if (falseStatement instanceof BlockStatement) {
final BlockStatement falseBlock = (BlockStatement) falseStatement;
final AstNodeCollection<Statement> falseStatements = falseBlock.getStatements();
if (falseStatements.hasSingleElement() &&
falseStatements.firstOrNullObject() instanceof IfElseStatement) {
final Statement elseIf = falseStatements.firstOrNullObject();
elseIf.remove();
falseStatement.replaceWith(elseIf);
}
}
return null;