checkForNull(compilationUnit, "compilation unit");
checkForNull(method, "method declaration");
Statement statement = searchStatement(compilationUnit, method.getBody().statements(), startLine, endLine);
if (statement == null) {
throw new StatementNotFoundException(compilationUnit, startLine, endLine);
}
return statement;
}