private static boolean refersToNonFinalLocal(PsiExpression initializer) {
    if (initializer instanceof PsiReferenceExpression ref && ref.resolve() instanceof PsiVariable refTarget) {
      if (PsiUtil.isJvmLocalVariable(refTarget) && !refTarget.hasModifierProperty(PsiModifier.FINAL)) {
        PsiElement block = PsiUtil.getVariableCodeBlock(refTarget, null);
        return block == null || !HighlightControlFlowUtil.isEffectivelyFinal(refTarget, block, null);
      }
    }
    return false;
  }
private static boolean refersToNonFinalLocal(PsiExpression initializer)