void (@NotNull Object action) { nestingCount.incrementAndGet(); assertTrue(application.isWriteIntentLockAcquired()); assertEquals(nestingCount.get() > 1, application.isWriteAccessAllowed()); assertTrue(application.isWriteActionPending()); assertThrows(IllegalStateException.class,()->application.runWriteAction(() -> {})); }