@Override
  protected void invoke(@NotNull ActionContext context, @NotNull PsiVariable variable, @NotNull ModPsiUpdater updater) {
    List<PsiReferenceExpression> references = VariableAccessUtils.getVariableReferences(variable);
    if (!references.isEmpty()) {
      updater.cancel(JavaBundle.message("tooltip.variable.used", variable.getName()));
    }
    variable.setName(myName);
  }
@Override
  protected void invoke(@NotNull ActionContext context, @NotNull PsiVariable variable, @NotNull ModPsiUpdater updater)