Result[] () { ArrayList<Result> results = new ArrayList<>(); for(int i=0; i<myComponents.size(); i++) { results.add(convert(myComponents.get(i), myConstraints.get(i))); } //addFillerPanels(results); final Result[] resultArray = results.toArray(new Result[0]); if (myHGap > 0 || myVGap > 0) { applyGaps(resultArray); } if (mySameSizeHorz) { makeSameSizes(resultArray, true); } if (mySameSizeVert) { makeSameSizes(resultArray, false); } return resultArray; }