change variable types from XxxSetBuilder to ArrayBuilder<Xxx> wherever possible