This error means that the method is choosing to return a read-only collection. If you want to add additional items, you will need to create a new collection from it. For example:
List<Thing> things = new ArrayList<>(method());
things.add(new Thing());