void (PsiReference reference) { assertNotNull(reference); PsiElement resolved = reference.resolve(); assertNotNull(resolved); assertTrue(resolved instanceof PsiEnumConstant); assertEquals("AAA", ((PsiEnumConstant)resolved).getName()); assertEquals("Foo", ((PsiEnumConstant)resolved).getContainingClass().getName()); assertVariants(reference, true); }