void (PsiPolyadicExpression expression) { CommentTracker commentTracker = new CommentTracker(); PsiExpression[] operands = expression.getOperands(); final PsiExpression lOperand = PsiUtil.skipParenthesizedExprDown(operands[0]); final PsiExpression rOperand = PsiUtil.skipParenthesizedExprDown(operands[1]); final PsiExpression replacement = ExpressionUtils.isEmptyStringLiteral(lOperand) ? rOperand : lOperand; String newText = replacement == null ? "" : buildReplacement(replacement, false, commentTracker); PsiReplacementUtil.replaceExpression(expression, newText, commentTracker); }