@Override
  public void invoke(@NotNull Project project,
                     @NotNull PsiFile file,
                     @Nullable Editor editor,
                     @NotNull PsiElement startElement,
                     @NotNull PsiElement endElement) {
    RefactoringActionHandlerOnPsiElement<PsiClass> handler =
      JavaRefactoringActionHandlerFactory.getInstance().createAnonymousToInnerHandler();
    handler.invoke(project, editor, (PsiClass)startElement);
  }
@Override
  public void invoke(@NotNull Project project,
                     @NotNull PsiFile file,
                     @Nullable Editor editor,
                     @NotNull PsiElement startElement,
                     @NotNull PsiElement endElement)