* closed.
* @throws AlreadyClosedException if this IndexWriter is closed
*/
protected final void ensureOpen(boolean includePendingClose) throws AlreadyClosedException {
if (closed || (includePendingClose && closing)) {
throw new AlreadyClosedException("this IndexWriter is closed");
}
}