void (PsiClass record, PsiElement target) { PsiRecordComponent[] components = record.getRecordComponents(); assertSize(1, components); assertEquals(target.getTextOffset(), components[0].getTextOffset()); }