void () { myFixture.configureByText("a.groovy", """ def foo(String s) {} new groovy.json.StreamingJsonBuilder().root { fo<caret>o "" } """); PsiElement resolved = myFixture.getFile().findReferenceAt(myFixture.getCaretOffset()).resolve(); assert resolved instanceof GrMethod; assert !(resolved instanceof LightElement); assert resolved.isPhysical(); }