private static @Nullable MyData getData(@Nullable Transferable content) {
    Object transferData;
    try {
      transferData = content == null ? null : content.getTransferData(ourDataFlavor);
    }
    catch (UnsupportedFlavorException | InvalidDnDOperationException | IOException e) {
      return null;
    }
    return transferData instanceof MyData ? (MyData)transferData : null;
  }
private static @Nullable MyData getData(@Nullable Transferable content)