boolean (@NotNull PsiElement element) { PsiExpression expression = ObjectUtils.tryCast(element, PsiExpression.class); if (expression == null) return false; return ExpressionUtils.computeConstantExpression(expression) instanceof Integer; }