void (@NotNull PsiPolyadicExpression expression) { for (PsiExpression operand : expression.getOperands()) { operand.accept(this); if (!myIsConstant) return; final PsiType type = operand.getType(); if (type != null && !(type instanceof PsiPrimitiveType) && !type.equalsToText(CommonClassNames.JAVA_LANG_STRING)) { myIsConstant = false; return; } } }