If the thread is running under a ProgressIndicator already, this call will throw.
If there is no indicator, passing fresh EmptyProgressIndicator without using it has no meaningful effect.
IJ-MR-153718
GitOrigin-RevId: b03f13d945561083ecbf8609fa7162ecdbdc3107