pub fn check_custom_pattern_names<N, I>(names: I) -> Result<()>where N: AsRef<str> + Eq + PartialEq + Hash, I: IntoIterator<Item = N>,