private static boolean isWriteWithoutRead(@NotNull PsiReferenceExpression ref, boolean exactType) {
    PsiElement parent = ref.getParent();
    if (parent instanceof PsiReferenceExpression && PsiUtil.isAccessedForWriting((PsiExpression)parent)) {
      PsiElement grandParent = parent.getParent();
      if (grandParent instanceof PsiExpression &&
          ExpressionUtils.isVoidContext((PsiExpression)grandParent)) {
        return true;
      }
    }
    PsiMethodCallExpression call = ExpressionUtils.getCallForQualifier(ref);
    return isWriteOnlyCall(call, exactType);
  }
private static boolean isWriteWithoutRead(@NotNull PsiReferenceExpression ref, boolean exactType)