@Override
  public @NotNull IntentionPreviewInfo generatePreview(@NotNull Project project, @NotNull ProblemDescriptor previewDescriptor) {
    return myAction.generatePreview(project,
                                    Objects.requireNonNull(IntentionPreviewUtils.getPreviewEditor()),
                                    Objects.requireNonNull(getPsiFile(previewDescriptor)));
  }
@Override
  public @NotNull IntentionPreviewInfo generatePreview(@NotNull Project project, @NotNull ProblemDescriptor previewDescriptor)