RWLockProtectedPageImpl (final int index, final int pageSize, final @NotNull PageToStorageHandle pageToStorageHandle, final ReentrantReadWriteLock contentProtectingLock) { final RWLockProtectedPageImpl page = new RWLockProtectedPageImpl( index, pageSize, pageToStorageHandle, contentProtectingLock ); if (!page.isNotReadyYet()) { throw new AssertionError("Bug: page just created must be NOT_READY_YET, but " + page); } return page; }