pub fn matches_extensions(
    file: &Path,
    extensions: &Option<BTreeSet<String>>
) -> bool