boolean (int fileId, @NotNull VirtualFile file) { if (file instanceof DeletedVirtualFileStub deletedFileStub) { if (deletedFileStub.isOriginalValid() && ensureFileBelongsToIndexableFilter(fileId, deletedFileStub.getOriginalFile()) != FileAddStatus.SKIPPED) { return true; } } return false; }