SimpleLookupTable docsToRefs = memoryIndex.docsToReferences;
if (result == null) result = new EntryResult(word, null);
int[] docNumbers = readDocumentNumbers(docs);
for (int i = 0, l = docNumbers.length; i < l; i++) {
String docName = readDocumentName(docNumbers[i]);
if (!docsToRefs.containsKey(docName))
result.addDocumentName(docName);
}
if (!result.isEmpty())
results.put(word, result);
}