I called a getElements method which returns Iterable.
getElements
Iterable
I did this:
List elements = (List
You can turn Iterable into a List with
List elements = Lists.newArrayList( getElements() );