ProgressIndicator (@NotNull ProgressIndicator indicator) { // Can't use "ProgressWrapper.unwrapAll" here because it unwraps "ProgressWrapper"s only (not any "WrappedProgressIndicator") while (indicator instanceof WrappedProgressIndicator) { indicator = ((WrappedProgressIndicator)indicator).getOriginalProgressIndicator(); } return indicator; }