void (@NotNull ProgressIndicatorEx indicator) { try { indicator.cancel(); } catch (Throwable t) { if (!(t instanceof ControlFlowException)) { LOG.warn("Failed to cancel task indicator: " + t.getMessage(), t); } } }