public static boolean hasExtension(String extension) {
    return sExtensionToMimeTypeMap.containsKey(extension) || sMimeTypeMap.hasExtension(extension);
  }
Wrapper around the system's {@link MimeTypeMap} that also handles types it doesn't support.
fbcore/src/main/java/com/facebook/common/media/MimeTypeMapWrapper.java