Concatenate with String::substring instead of StringBuilder::append
Changed code is not only shorter and more simple, but also faster and consumes less memory, see measurements here: https://youtrack.jetbrains.com/issue/IDEA-205676
Changed code is not only shorter and more simple, but also faster and consumes less memory, see measurements here: https://youtrack.jetbrains.com/issue/IDEA-205676