mimetypeInternalDetect() shouldn't be static