boolean () { return ProgressManager.getInstance().computeInNonCancelableSection(() -> { try { mySaver.save(myRootsToSave); return true; } catch (VcsException e) { LOG.info("Couldn't save local changes", e); String format = VcsBundle.message("changes.tried.to.save.uncommitted.changes.in.shelve.before.s.but.failed.with.an.error", myOperationTitle, join(e.getMessages())); VcsNotifier.getInstance(myProject).notifyError( UNCOMMITTED_CHANGES_SAVING_ERROR, VcsBundle.message("notification.title.couldn.t.save.uncommitted.changes"), format); return false; } }); }