void (@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); }