void (PsiPolyadicExpression expression) { final IElementType tokenType = expression.getOperationTokenType(); final String operandText = getShortCircuitOperand(tokenType); final PsiExpression[] operands = expression.getOperands(); final StringBuilder newExpression = new StringBuilder(); CommentTracker commentTracker = new CommentTracker(); for (PsiExpression operand : operands) { if (!newExpression.isEmpty()) { newExpression.append(operandText); } newExpression.append(commentTracker.text(operand)); } PsiReplacementUtil.replaceExpression(expression, newExpression.toString(), commentTracker); }