Working with annotations and immutable objects