void (@NotNull PsiReferenceExpression referenceExpression) { super.visitReferenceExpression(referenceExpression); final PsiExpression qualifier = referenceExpression.getQualifierExpression(); if (qualifier != null) { return; } final PsiElement element = referenceExpression.resolve(); if (!(element instanceof PsiLocalVariable accessedVariable)) { return; } if (myVariablesInPreviousBranches.contains(accessedVariable)) { myVariablesInPreviousBranches.remove(accessedVariable); registerVariableError(accessedVariable); } }