you can simplify this to `results = app.getTasksList.asScala.toSet` and make results an immutable set.