private static String guessMimeTypeFromFilename(String filename) {
    try {
      String mimeType = TIKA.detect(filename);
      if (mimeType.equals(DEFAULT_BINARY_MIMETYPE)) {
        return null;
      }
      return mimeType;
    } catch (Exception e) {
      return null;
    }
  }
Nearly identical variant of {@link Instant#parse} that, per RFC3339, is okay with either
offsets or "Z" indicator.
extensions/data-transfer/portability-data-transfer-google/src/main/java/org/datatransferproject/datatransfer/google/mediaModels/GoogleMediaItem.java