@Override
  public void uiDataSnapshot(@NotNull DataSink sink) {
    EditorEx editor = getEditor(false);
    if (editor != null && editor.isRendererMode()) {
      sink.set(PlatformDataKeys.COPY_PROVIDER, editor.getCopyProvider());
    }
    sink.set(CommonDataKeys.EDITOR, editor);
  }
@Override
  public void uiDataSnapshot(@NotNull DataSink sink)