import org.eclipse.ui.internal.WorkbenchPlugin;
import org.eclipse.ui.statushandlers.StatusManager;
public class StatusUtil {
protected static List flatten(IStatus aStatus) {
List result = new ArrayList();
<BUG>if (aStatus.isMultiStatus()) {
IStatus[] children = aStatus.getChildren();
for (int i = 0; i < children.length; i++) {
IStatus currentChild = children[i];
if (currentChild.isMultiStatus()) {

Iterator childStatiiEnum = flatten(currentChild).iterator();
</BUG>
while (childStatiiEnum.hasNext()) {

import org.eclipse.ui.internal.WorkbenchPlugin;
import org.eclipse.ui.statushandlers.StatusManager;
public class StatusUtil {
protected static List flatten(IStatus aStatus) {
List result = new ArrayList();
if (aStatus.isMultiStatus()) {
for (IStatus status : aStatus.getChildren()) {
if (status.isMultiStatus()) {
Iterator childStatiiEnum = flatten(status).iterator();
while (childStatiiEnum.hasNext()) {
