Runnable (@NotNull final ProgressIndicator indicator) { try { return computeDifferences(indicator); } catch (DiffTooBigException e) { return () -> { clearDiffPresentation(); myPanel.setTooBigContent(); }; } catch (ProcessCanceledException e) { throw e; } catch (Throwable e) { LOG.error(e); return applyErrorNotification(); } }