boolean (PsiStatement statement, PsiVariable variable) { for (PsiStatement sibling = nextExecutedStatement(statement); sibling != null; sibling = nextExecutedStatement(sibling)) { PsiExpression rValue = ExpressionUtils.getAssignmentTo(sibling, variable); if (rValue != null && !VariableAccessUtils.variableIsUsed(variable, rValue)) return true; if (VariableAccessUtils.variableIsUsed(variable, sibling)) return false; } return false; }