@Override
  public @NotNull IntentionPreviewInfo generatePreview(@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) {
    List<? extends PsiClass> classesToImport = getClassesToImport(true);
    if (classesToImport.isEmpty()) return IntentionPreviewInfo.EMPTY;
    PsiClass firstClassToImport = classesToImport.get(0);
    PsiJavaCodeReferenceElement ref = PsiTreeUtil.findSameElementInCopy(getReference(), file);
    bindReference(ref, firstClassToImport);
    return IntentionPreviewInfo.DIFF;
  }
@Override
  public @NotNull IntentionPreviewInfo generatePreview(@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file)