void (@NotNull PsiElement element) { if (!(element instanceof PsiExpression)) { super.visitElement(element); return; } Object value = getCached((PsiExpression)element); if (value == null) { super.visitElement(element); // will cache back in elementFinished() } else { myConstantExpressionVisitor.store(element, value == NO_VALUE ? null : value); } }