@Override
  public @Nullable Transferable getSelection(@NotNull Editor editor, @NotNull CopyPasteOptions options) {
    Project project = editor.getProject();
    if (project == null) return null;
    PsiFile file = PsiDocumentManager.getInstance(project).getPsiFile(editor.getDocument());
    if (file == null) return null;
    return getSelection(editor, project, file, options);
  }
@Override
  public @Nullable Transferable getSelection(@NotNull Editor editor, @NotNull CopyPasteOptions options)