void () { GroovyFile file = (GroovyFile) myFixture.configureByText("a.groovy", """ new groovy.json.StreamingJsonBuilder().cal<caret>l {} """); GrTopStatement[] statements = file.getTopStatements(); GrCallExpression call = (GrCallExpression) statements[statements.length - 1]; Object method = call.resolveMethod(); assert method != null; assert method instanceof ClsMethodImpl; }