boolean (@NotNull PsiFile file) { return CachedValuesManager.getCachedValue(file, () -> CachedValueProvider.Result.create(PsiSearchHelper.getInstance(file.getProject()).hasIdentifierInFile(file, "beaninfo") && PsiSearchHelper.getInstance(file.getProject()).hasIdentifierInFile(file, "enum"), file)); }