void () { ApplicationManager.getApplication().assertWriteIntentLockAcquired(); if (!myWritingAllowed && areAssertionsEnabled() && !myErrorReported) { // please assign exceptions here to Peter LOG.error(reportWriteUnsafeContext(ModalityState.current())); myErrorReported = true; } }