String source = context.getContents();
if (source == null) {
return;
}
List<ASTNode> astNodes = new AstBuilder().buildFromString(source);
GroovyCodeVisitor visitor = new CodeVisitorSupport() {
private List<MethodCallExpression> mMethodCallStack = Lists.newArrayList();
@Override
public void visitMethodCallExpression(MethodCallExpression expression) {
mMethodCallStack.add(expression);