public static boolean isAccessedForWriting(final PsiExpression[] expressionOccurrences) {
    for (PsiExpression expression : expressionOccurrences) {
      if(expression.isValid() && PsiUtil.isAccessedForWriting(expression)) return true;
    }

    return false;
  }
public static boolean isAccessedForWriting(final PsiExpression[] expressionOccurrences)