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