@Override
  public @NotNull IntentionPreviewInfo generatePreview(@NotNull Project project, @NotNull ProblemDescriptor previewDescriptor) {
    RefactoringActionHandler handler = getHandler();
    if (handler instanceof PreviewableRefactoringActionHandler previewableHandler) {
      PsiElement element = getElementToRefactor(previewDescriptor.getPsiElement());
      return previewableHandler.generatePreview(project, element);
    }
    return IntentionPreviewInfo.EMPTY;
  }
@Override
  public @NotNull IntentionPreviewInfo generatePreview(@NotNull Project project, @NotNull ProblemDescriptor previewDescriptor)