errors can keep final, and instead of attribute `emptyList` here, you can call `List.clear()` method.