String (@NotNull String text) { // Clipboard on Windows and Linux works with null-terminated strings, on Mac nulls are not treated in a special way. return SystemInfo.isMac ? text : text.replace('\000', ' '); }