Augmented assignment creates a new collection under the hood
Reports augmented assignment (
+=) expressions on a read-only
Augmented assignment (
+=) expression on a read-only
Collection temporarily allocates a new collection, which may hurt performance.
Change type to mutable quick-fix can be used to amend the code automatically.
After the quick-fix is applied:
IntelliJ IDEA 2023.3, Qodana for JVM 2023.3