public boolean blockAssignsVariable(@Nullable PsiCodeBlock block, @NotNull PsiVariable variable) {
    return blockAssignsVariable(block, variable, counter, new HashSet<>());
  }
public boolean blockAssignsVariable(@Nullable PsiCodeBlock block, @NotNull PsiVariable variable)