public ComponentImpl(BatchReport.Component component, @Nullable Iterable<Component> children) {
this.component = component;
this.type = convertType(component.getType());
this.children = children == null ? Collections.<Component>emptyList() : copyOf(filter(children, notNull()));
}
<BUG>private static Type convertType(Constants.ComponentType type) {
</BUG>
switch (type) {
case PROJECT:
return Type.PROJECT;

public ComponentImpl(BatchReport.Component component, @Nullable Iterable<Component> children) {
this.component = component;
this.type = convertType(component.getType());
this.children = children == null ? Collections.<Component>emptyList() : copyOf(filter(children, notNull()));
}
public static Type convertType(Constants.ComponentType type) {
switch (type) {
case PROJECT:
return Type.PROJECT;
