void (@Nullable ProgressIndicator modalityProgress) { ModalityState modalityState = ModalityState.defaultModalityState(); if (modalityProgress != null) { modalityState = ((ModalityStateEx)modalityState).appendProgress(modalityProgress); ((TransactionGuardImpl)TransactionGuard.getInstance()).enteredModality(modalityState); } myModalityState = modalityState; }