boolean (@Nullable PsiExpressionList list) { if (list == null) return false; PsiExpression[] args = list.getExpressions(); JavaPsiFacade instance = JavaPsiFacade.getInstance(list.getProject()); PsiConstantEvaluationHelper helper = instance.getConstantEvaluationHelper(); for (PsiExpression arg : args) { if (helper.computeConstantExpression(arg) == null) return false; } return true; }