public static AccessDirection of(PyAstElement element) {
    final PsiElement parent = element.getParent();
    if (element instanceof PyAstTargetExpression) {
      return WRITE;
    }
    else if (parent instanceof PyAstAssignmentStatement) {
      for (PyAstExpression target : ((PyAstAssignmentStatement)parent).getTargets()) {
        if (target == element) {
          return WRITE;
        }
      }
    }
    else if (parent instanceof PyAstDelStatement) {
      return DELETE;
    }
    return READ;
  }
public static AccessDirection of(PyAstElement element)