String (@NotNull Editor editor, @NotNull String input, @NotNull Collection<? extends TextBlockTransferableData> itemsToUpdate) { // converting line separators to spaces matches the behavior of Swing text components on paste return convertLineSeparators(input, editor.isOneLineMode() ? " " : "\n", itemsToUpdate); }