@Nullable
  @Override
  public String getActionName(PsiElement @NotNull [] elements) {
    if (elements.length > 0 && elements[0] instanceof PsiAnonymousClass) {
      return JavaRefactoringBundle.message("convert.anonymous.to.inner.action.name");
    }
    return JavaRefactoringBundle.message("convert.local.to.inner.action.name");
  }
@Nullable
  @Override
  public String getActionName(PsiElement @NotNull [] elements)