private static @NotNull List<PsiExpressionStatement> initializers(@NotNull PsiLocalVariable var) {
    List<PsiReferenceExpression> references = VariableAccessUtils.getVariableReferences(var);
    List<PsiExpressionStatement> initializers = new ArrayList<>();
    for (PsiReferenceExpression reference : references) {
      if (!PsiUtil.isAccessedForWriting(reference)) continue;
      if (!(reference.getParent() instanceof PsiAssignmentExpression assign) || assign.getOperationTokenType() != JavaTokenType.EQ) {
        return List.of();
      }
      if (!(assign.getParent() instanceof PsiExpressionStatement statement)) return List.of();
      initializers.add(statement);
    }
    return initializers;
  }
private static @NotNull List<PsiExpressionStatement> initializers(@NotNull PsiLocalVariable var)