PsiClass () { PsiElement parent = getParent(); LOG.assertTrue(parent instanceof GrEnumConstant); PsiClass containingClass = ((GrEnumConstant)parent).getContainingClass(); LOG.assertTrue(containingClass != null); return containingClass; }