@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiLocalVariable variable) {
    final PsiVariable previousVariable = findPreviousVariable(variable);
    if (previousVariable == null || !Comparing.equal(previousVariable.getType(), variable.getType())) return null;
    return Presentation.of(QuickFixBundle.message("reuse.variable.declaration.text", variable.getName()));
  }
@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiLocalVariable variable)