[intellij] use addAll instead of adding each element manually.
[intellij] use System.arraycopy instead of copying an array manually.
[intellij] further introduction of generics.
[intellij] NO compile warnings anymore in intellij. :)