boolean (PsiPolyadicExpression expression) { if (expression.getOperands().length > 2) { return true; } final PsiElement containingElement = PsiUtil.skipParenthesizedExprUp(expression.getParent()); if (containingElement instanceof PsiExpression containingExpression) { if (!PsiUtil.isConstantExpression(containingExpression)) { return false; } } else { return false; } return true; }