void (@NotNull MainVcsLogUi logUi, @NotNull GraphAction graphAction, @NotNull @NlsContexts.ProgressTitle String title) { VisiblePack dataPack = logUi.getDataPack(); ProgressManager.getInstance().runProcessWithProgressSynchronously(() -> { ActionController<Integer> actionController = dataPack.getVisibleGraph().getActionController(); GraphAnswer<Integer> answer = actionController.performAction(graphAction); Runnable updater = answer.getGraphUpdater(); ApplicationManager.getApplication().invokeLater(() -> { assert updater != null : "Action:" + title + "\nController: " + actionController + "\nAnswer:" + answer; updater.run(); logUi.getTable().handleAnswer(answer); }); }, title, false, null, logUi.getMainComponent()); }