function _addFileToIndexes(entry) {

        // skip invisible files
        if (!ProjectManager.shouldShow(entry)) {
            return;
        }

        var fileInfo = new FileInfo(entry);
        //console.log(entry.name);
  
        $.each(_indexList, function (indexName, index) {
            if (index.filterFunction(entry)) {
                index.fileInfos.push(fileInfo);
            }
        });
    }
Checks the entry against the filterFunction for each index and adds
a fileInfo to the index if the entry meets the criteria. FileInfo's are
shared between indexes.

@private
@param {!entry} entry to be added to the indexes