void (@NotNull AnActionEvent e) { String text = myPane == null ? null : myPane.getSelectedText(); if (!StringUtil.isEmpty(text)) { CopyPasteManager.getInstance().setContents(new StringSelection(text)); } }