private static @NotNull String cleanFromNullsIfNeeded(@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', ' ');
  }
private static @NotNull String cleanFromNullsIfNeeded(@NotNull String text)