@Override
  protected void applyFix(@NotNull Project project, @NotNull PsiElement nameElement, @NotNull ModPsiUpdater updater) {
    final PsiLocalVariable variable = (PsiLocalVariable)nameElement.getParent();
    final PsiExpression initializer = variable.getInitializer();
    if (initializer == null) {
      return;
    }

    final Collection<PsiReferenceExpression> references = VariableAccessUtils.getVariableReferences(variable);
    final Collection<PsiElement> replacedElements = new ArrayList<>();
    for (PsiReferenceExpression reference : references) {
      var inlineUtil = CommonJavaInlineUtil.getInstance();
      final PsiExpression expression = inlineUtil.inlineVariable(variable, initializer, reference, null);
      replacedElements.add(expression);
    }

    for (PsiElement element : replacedElements) {
      updater.highlight(element);
    }
    new CommentTracker().deleteAndRestoreComments(variable);
  }
@Override
  protected void applyFix(@NotNull Project project, @NotNull PsiElement nameElement, @NotNull ModPsiUpdater updater)