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