void (@NotNull AnActionEvent e) { DataContext dataContext = e.getDataContext(); CopyProvider provider = PlatformDataKeys.COPY_PROVIDER.getData(dataContext); if (provider == null) { return; } provider.performCopy(dataContext); String string = CopyPasteManager.getInstance().getContents(DataFlavor.stringFlavor); search(string); }