in plugin/src/main/kotlin/org/jetbrains/downloadThis/DownloadAnyLink.kt [33:40]
override fun actionPerformed(event: AnActionEvent) {
val currentProject = event.project ?: return
val destinationDir = PathSelector.getDestinationDir(currentProject)
val selectedText = event.getData(CommonDataKeys.CARET)?.selectedText
DownloadAnyLinkDialog(currentProject, destinationDir, selectedText.orEmpty()).show()
}