public boolean isWriting() {
    return myReferencedElement instanceof PsiField &&
              getElement() instanceof PsiReferenceExpression && PsiUtil.isAccessedForWriting(((PsiReferenceExpression)getElement()));
  }
public boolean isWriting()