docs: public void setVertexArray(VertexArray vertexArray) {
          if (vertexArray == null) {
              throw new IllegalArgumentException("Vertex array cannot be null");
          }
          vertexArray.checkCreated();
          this.vertexArray = vertexArray;
      }