@Override
  public @NotNull IntentionPreviewInfo generatePreview(@NotNull Project project, @NotNull PsiElement element) {
    if (!(element instanceof PsiClass aClass)) return IntentionPreviewInfo.EMPTY;
    PsiClass superClass = aClass.getSuperClass();
    if (superClass == null) return IntentionPreviewInfo.EMPTY;
    JavaRefactoringSettings settings = JavaRefactoringSettings.getInstance();
    final var processor = new InheritanceToDelegationProcessor(project, aClass, superClass, suggestFieldNames(aClass, superClass)[0],
                                                               suggestTargetClassName(aClass), PsiClass.EMPTY_ARRAY, PsiMethod.EMPTY_ARRAY,
                                                               settings.INHERITANCE_TO_DELEGATION_DELEGATE_OTHER,
                                                               settings.INHERITANCE_TO_DELEGATION_DELEGATE_OTHER);
    processor.performRefactoring(UsageInfo.EMPTY_ARRAY);
    return IntentionPreviewInfo.DIFF;
  }
@Override
  public @NotNull IntentionPreviewInfo generatePreview(@NotNull Project project, @NotNull PsiElement element)