private static boolean isAccessedForReading(@NotNull UElement expression) {
    UElement parent = skipParentheses(expression);
    return !(parent instanceof UBinaryExpression binaryExpression) ||
           binaryExpression.getOperator() != UastBinaryOperator.ASSIGN ||
           UastUtils.isUastChildOf(binaryExpression.getRightOperand(), expression, false);
  }
private static boolean isAccessedForReading(@NotNull UElement expression)