void (final @NotNull Disposable parentDisposable, final @NotNull Runnable transaction) { TransactionIdImpl ctx = getContextTransaction(); ApplicationManager.getApplication().invokeLaterOnWriteThread(transaction, ctx == null ? ModalityState.nonModal() : ctx.myModality); }