}
// try to find exiting statement
List<Statement> statements = DomGenerics.statements(method);
for (Statement statement : statements) {
if (statement instanceof IfStatement) {
IfStatement ifStatement = (IfStatement) statement;
Expression condition = ifStatement.getExpression();
if (isThisCondition(condition)) {
return ifStatement;
}
}
}