@Override
      public @NotNull IntentionPreviewInfo generatePreview(@NotNull Project project, @NotNull ProblemDescriptor previewDescriptor) {
        PsiElement elementToRefactor = getElementToRefactor(previewDescriptor.getPsiElement());
        if (elementToRefactor instanceof PsiClass aClass) {
          String className = aClass.getName();
          return new IntentionPreviewInfo.Html(
            JavaRefactoringBundle.message("move.class.to.new.file.or.make.inner.class.preview", className));
        }
        return IntentionPreviewInfo.EMPTY;
      }
@Override
      public @NotNull IntentionPreviewInfo generatePreview(@NotNull Project project, @NotNull ProblemDescriptor previewDescriptor)