@Override
    public void visitReferenceExpression(@NotNull PsiReferenceExpression expression) {
      super.visitReferenceExpression(expression);
      if (expression.isReferenceTo(myVariable)) {
        myReadBeforeWritten = PsiUtil.isAccessedForReading(expression);
        stopWalking();
      }
    }
@Override
    public void visitReferenceExpression(@NotNull PsiReferenceExpression expression)