void (@NotNull DataContext dataContext) { Collection<String> lines = getTextLinesToCopy(); if (lines != null && !lines.isEmpty()) { String text = StringUtil.join(lines, getLinesSeparator()); CopyPasteManager.getInstance().setContents(new StringSelection(text)); } }