void (@NotNull Object action) { assertTrue(application.isWriteIntentLockAcquired()); assertTrue(application.isWriteActionInProgress()); assertTrue(application.isWriteAccessAllowed()); assertFalse(application.isWriteActionPending()); // jury is still out on whether we should allow starting write action from here //assertThrows(IllegalStateException.class,()->application.runWriteAction(() -> {})); }