boolean (VirtualFile file) { int fileId = ((VirtualFileWithId)file).getId(); if (myIndexableFilesFilter != null && !(file instanceof DeletedVirtualFileStub) && !myIndexableFilesFilter.containsFileId(fileId)) { if (myFilesFromOtherProjects >= MAX_FILES_TO_UPDATE_FROM_OTHER_PROJECT) return false; ++myFilesFromOtherProjects; return true; } if (file instanceof DeletedVirtualFileStub) { return true; } if (FileBasedIndexEx.belongsToScope(file, myRestrictedTo, myFilter)) return true; if (myFilesFromOtherProjects < MAX_FILES_TO_UPDATE_FROM_OTHER_PROJECT) { ++myFilesFromOtherProjects; return true; } return false; }