void (@NotNull PsiReferenceExpression expression) { if (expression.isReferenceTo(variable) && PsiUtil.isAccessedForWriting(expression) && ControlFlowUtil.isVariableAssignedInLoop(expression, variable)) { stopWalking(); stopped.set(true); } }