void () { myFixture.configureByText("A.groovy", """ class A { void testSomething() { def xml = new groovy.xml.MarkupBuilder() xml.records() { getDoubleQuotes<caret>() } } } """); PsiElement method = myFixture.getElementAtCaret(); assert method instanceof ClsMethodImpl; assert method.isPhysical(); assert ((ClsMethodImpl)method).getContainingClass().getName().equals("MarkupBuilder"); }