select

public static List<File> select(Collection<File> candidates)


public static List<File> select(Collection<File> candidates, UnaryOperator<String> filenameKey)

Uses stable absolute-path order, regardless of directory enumeration order or file contents. The key function must match the catalog's existing filename lookup rules. Selection never deletes or rewrites files, and never falls back to a skipped duplicate.