PsiExpression (PsiAssignmentExpression assignment, IElementType compoundAssignmentOp) { if (compoundAssignmentOp.equals(assignment.getOperationTokenType())) { return assignment.getRExpression(); } else if (JavaTokenType.EQ.equals(assignment.getOperationTokenType())) { if (assignment.getRExpression() instanceof PsiBinaryExpression binOp) { IElementType op = TypeConversionUtil.convertEQtoOperation(compoundAssignmentOp); if (op.equals(binOp.getOperationTokenType())) { if (sameReference(binOp.getLOperand(), assignment.getLExpression())) { return binOp.getROperand(); } if (sameReference(binOp.getROperand(), assignment.getLExpression())) { return binOp.getLOperand(); } } } } return null; }