@Override
    public void uiDataSnapshot(@NotNull DataSink sink) {
      sink.set(CommonDataKeys.PROJECT, project);
      sink.set(OpenFileDescriptor.NAVIGATE_IN_EDITOR, editor);
      sink.set(CommonDataKeys.EDITOR, editor);
      sink.set(CommonDataKeys.VIRTUAL_FILE, editor.getVirtualFile());
      sink.set(PlatformCoreDataKeys.FILE_EDITOR,
               TextEditorProvider.getInstance().getTextEditor(editor));
    }
@Override
    public void uiDataSnapshot(@NotNull DataSink sink)