ExternalSystemTaskNotificationListener (@NotNull ExternalSystemProgressNotificationManagerImpl manager) { return new ExternalSystemTaskNotificationListenerAdapter() { @Override public void onStatusChange(@NotNull ExternalSystemTaskNotificationEvent event) { manager.onStatusChange(event); } @Override public void onTaskOutput(@NotNull ExternalSystemTaskId id, @NotNull String text, boolean stdOut) { manager.onTaskOutput(id, text, stdOut); } }; }