boolean (@NotNull PsiReference reference) { PsiElement element = reference.getElement(); if (element instanceof PsiReferenceExpression && PsiUtil.isAccessedForWriting((PsiExpression)element)) { myIsWriteRefFound = true; return false; } return true; }