boolean (@NotNull UElement expression) { UExpression parent = ObjectUtils.tryCast(skipParentheses(expression), UExpression.class); if (parent == null) return false; return parent instanceof UBinaryExpression binaryExpression && binaryExpression.getOperator() instanceof UastBinaryOperator.AssignOperator && UastUtils.isUastChildOf(expression, binaryExpression.getLeftOperand(), false); }