Set<File> () { return new ObjectLinkedOpenCustomHashSet<>(new Hash.Strategy<File>() { @Override public int hashCode(@Nullable File o) { return FileUtilRt.pathHashCode(o == null ? null : o.getPath()); } @Override public boolean equals(@Nullable File a, @Nullable File b) { return FileUtilRt.pathsEqual(a == null ? null : a.getPath(), b == null ? null : b.getPath()); } }); }