boolean (PsiElement namedElement, PsiElement expression, Collection<? super PsiElement> elementsToInvert) { boolean toInvert = super.collectElementsToInvert(namedElement, expression, elementsToInvert); PsiElement parent = expression.getParent(); if (parent instanceof PsiAssignmentExpression && !(parent.getParent() instanceof PsiExpressionStatement) || isOperatorAssignment(parent)) { elementsToInvert.add(parent); } return toInvert; }