void () { myFixture.configureByText("Test.java", "record X<caret>yz() {}"); PsiElement element = getTargetElement(); assertTrue(element instanceof PsiClass); assertTrue(((PsiClass)element).isRecord()); }