void (@NotNull ProgressIndicator i) { try { task.run(new MavenProgressIndicator(null, i, null)); } catch (MavenProcessCanceledException | ProcessCanceledException e) { canceledEx[0] = e; } catch (RuntimeException e) { runtimeEx[0] = e; } catch (Error e) { errorEx[0] = e; } }