- static Set<String> getDuplicates(Collection<String> keyList) {
- Set<String> all = new HashSet<String>();
- Set<String> duplicates = new HashSet<String>();
+ static Set<String> getDuplicates(final Iterable<String> keyList) {
+ Set<String> all = new HashSet<>();
+ Set<String> duplicates = new HashSet<>();