@Override
  public void visitReferenceExpression(@NotNull PsiReferenceExpression expression) {
    if (read || written) return;
    super.visitReferenceExpression(expression);
    if (ExpressionUtils.isReferenceTo(expression, variable)) {
      if (PsiUtil.isAccessedForReading(expression)) {
        read = true;
      }
      else if (PsiUtil.isAccessedForWriting(expression)) {
        written = true;
      }
    }
  }
@Override
  public void visitReferenceExpression(@NotNull PsiReferenceExpression expression)