Element (@NotNull Element element, @NotNull String x, @NotNull String y, @NotNull String width, @NotNull String height, @NotNull Rectangle bounds) { return element .setAttribute(x, Integer.toString(bounds.x)) .setAttribute(y, Integer.toString(bounds.y)) .setAttribute(width, Integer.toString(bounds.width)) .setAttribute(height, Integer.toString(bounds.height)); }