void () { PsiElement target = resolve(); assertTrue(target instanceof PsiMethod); assertFalse(target instanceof LightRecordMethod); PsiClass aClass = ((PsiMethod)target).getContainingClass(); PsiMethod[] methods = aClass.getMethods(); assertEquals(3, methods.length); }