This array seems unnecessary. Can't you just do:
```java
ObjectInspector inspector = getInspector(InnerStruct.class);
UnionObjectInspector unionInspector = ObjectInspectorFactory.getStandardUnionObjectInspector(ImmutableList.of(inspector));
```

Maybe even inline the unionInspector where it's being used.