@Override
    boolean isWriteAllowed(PsiVariable variable, PsiExpression reference) {
      return variable == myVariable && reference.getParent() == myExpression.getParent();
    }
@Override
    boolean isWriteAllowed(PsiVariable variable, PsiExpression reference)