Let's change the return type to Seq[ObjectInspector] so it is not mutable anymore. And return Seq.empty[ObjectInspector] if there is no input.