retainOnly

public int retainOnly(Collection<File> schematicFiles)

Drops every entry whose file is no longer part of the schematic set.

Return

how many entries were dropped, which tells the caller whether the set changed at all