void (PsiElement element) { final PsiAssignmentExpression exp = (PsiAssignmentExpression)element; final PsiExpression lhs = exp.getLExpression(); final PsiExpression rhs = PsiUtil.skipParenthesizedExprDown(exp.getRExpression()); final IElementType tokenType = exp.getOperationTokenType(); final String assignString; if (tokenType.equals(JavaTokenType.LTLTEQ)) { assignString = "*="; } else { assignString = "/="; } CommentTracker commentTracker = new CommentTracker(); final String expString = commentTracker.text(lhs) + assignString + ShiftUtils.getExpBase2(rhs); PsiReplacementUtil.replaceExpression(exp, expString, commentTracker); }