imports is now an Iterable<String> and uniqueDirectives is much safer in regards to what it filters

The filter will only extract duplicate imports with no prefix, show, or
hide.