boolean (@NotNull PsiElement element) { if (element instanceof PsiEnumConstant) { PsiClass psiClass = ((PsiEnumConstant)element).getContainingClass(); return psiClass != null && CachedValuesManager.getCachedValue(psiClass, () -> CachedValueProvider.Result.create(isEnumClassReferencedInEnumSourceAnnotation(psiClass), PsiModificationTracker.MODIFICATION_COUNT)); } return false; }