void (@NotNull DataContext dataContext) { String selectedText = getSelectedText(); if (selectedText == null || selectedText.isEmpty()) selectedText = StringUtil.removeHtmlTags(getText()); CopyPasteManager.getInstance().setContents(new StringSelection(selectedText)); }