boolean (@NotNull PsiElement element) { if (element instanceof PsiField field && field.hasModifierProperty(PsiModifier.VOLATILE)) { return CachedValuesManager.getCachedValue(field, () -> new CachedValueProvider.Result<>(isAtomicWrite(field), PsiModificationTracker.MODIFICATION_COUNT)); } return false; }