Using more common type.
Do not generate toString and other methods if they are inherited.
Generating stub methods for read-only list.
Generating remove() for Iterator using same mechanism.
Added for iterator when remove() is present.
Generating stub methods for read-only collection.
Formatting.
Generating stub methods for read-only map and entry.
Extracted method.
Simplified.