public static @Nullable RawText fromTransferable(Transferable content) {
    DataFlavor flavor = getDataFlavor();

    if (flavor != null) {
      try {
        return (RawText)content.getTransferData(flavor);
      }
      catch (UnsupportedFlavorException | IOException ignore) { }
    }

    return null;
  }
public static @Nullable RawText fromTransferable(Transferable content)