private static Statement getBlock(IfStatement ifStatement, ASTNode node) {
Statement falseStatement = ifStatement.getFalseStatement();
Statement trueStatement = ifStatement.getTrueStatement();
if (trueStatement != null
&& trueStatement.sourceStart() <= node.sourceStart()
&& trueStatement.sourceEnd() >= node.sourceEnd()) {
return trueStatement;
} else if (falseStatement != null
&& falseStatement.sourceStart() <= node.sourceStart()
&& falseStatement.sourceEnd() >= node.sourceEnd()) {
return falseStatement;