docs: def _listify(collection):
          """This is a workaround where Collections are no longer iterable
          when using JPype."""
          new_list = []
          for index in range(len(collection)):
              new_list.append(collection[index])
          return new_list