void () { myFixture.configureByText("Test.java", "record Xyz()<caret> {}"); PsiElement element = getTargetElement(); assertTrue(element instanceof PsiMethod); assertTrue(((PsiMethod)element).isConstructor()); assertEquals("Xyz", ((PsiMethod)element).getName()); }