private static Set<String> getTopLevelNames(DirectoryNode root) {
        Set<String> names = new HashSet<>();
        for (Entry entry : root) {
            names.add(entry.getName());
        }
        return names;
    }
Internal detection of the specific kind of OLE2 document, based on the
names of the top-level streams within the file. In some cases the
detection may need access to the root {@link DirectoryEntry} of that file
for best results. The entry can be given as a second, optional argument.

@param names
@param root
@return
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/main/java/org/apache/tika/detect/ole/MiscOLEDetector.java