void () { ((ApplicationImpl)ApplicationManager.getApplication()).executeByImpatientReader(() -> { try { doRun(); } catch (ApplicationUtil.CannotRunReadActionException e) { myUpdateProgress.cancel(); } catch (RuntimeException | Error e) { saveException(e, myUpdateProgress); throw e; } }); }