private static @Nullable String getSerializedComponents() {
    try {
      final Object transferData = CopyPasteManager.getInstance().getContents(ourDataFlavor);
      if (!(transferData instanceof SerializedComponentData dataProxy)) {
        return null;
      }

      return dataProxy.getSerializedComponents();
    }
    catch (Exception e) {
      return null;
    }
  }
private static @Nullable String getSerializedComponents()