instanceChecker = new InstanceOfExpression();
if(node instanceof Expression)
return getExpressions((Expression)node);
else if(node instanceof Statement)
return getExpressions((Statement)node);
<BUG>return null;
}</BUG>
private List<Expression> getExpressions(Statement statement) {
List<Expression> expressionList = new ArrayList<Expression>();
if(statement instanceof Block) {

instanceChecker = new InstanceOfExpression();
if(node instanceof Expression)
return getExpressions((Expression)node);
else if(node instanceof Statement)
return getExpressions((Statement)node);
return new ArrayList<Expression>();
}
private List<Expression> getExpressions(Statement statement) {
List<Expression> expressionList = new ArrayList<Expression>();
if(statement instanceof Block) {
