If you are sure that MutableObject
is effectively immutable you can do
@Immutable( knownImmutableClasses=[ MutableObject ] )
class MyObject {
MutableObject mutableObject
}
Obviously care must be taken if this is a lie and mutableObject mutates ;-)