void (@NotNull final ProgressIndicator indicator, ExternalSystemTaskNotificationListener @NotNull ... listeners) { indicator.setIndeterminate(true); final ExternalSystemTaskNotificationListener[] ls; ExternalSystemTaskNotificationListener progressIndicatorListener = getProgressIndicatorListener(indicator); if (listeners.length > 0) { ls = ArrayUtil.append(listeners, progressIndicatorListener); } else { ls = new ExternalSystemTaskNotificationListener[]{progressIndicatorListener}; } execute(ls); }