PsiExpression (PsiExpression expression) { if (expression instanceof PsiUnaryExpression) { final IElementType elementType = ((PsiUnaryExpression)expression).getOperationTokenType(); if (elementType == JavaTokenType.PLUSPLUS || elementType == JavaTokenType.MINUSMINUS) { PsiExpression operand = ((PsiUnaryExpression)expression).getOperand(); if (operand != null) { return ((PsiBinaryExpression)expression.replace( myElementFactory.createExpressionFromText(operand.getText() + " + x", operand))).getROperand(); } } } return super.expressionToReplace(expression); }