void (boolean synchronous, final @NotNull DisposeAwareProjectChange task) { if (!ApplicationManager.getApplication().isDispatchThread()) { TransactionGuard.getInstance().assertWriteSafeContext(ModalityState.defaultModalityState()); } executeOnEdt(synchronous, () -> ApplicationManager.getApplication().runWriteAction(task)); }