refactoring: do not create explicit arrays to call varargs methods
refactoring: use Java-style array declaration
refactoring: simplify expression
refactoring: narrow scope of variable
refactoring: simplify data flow