code: public static Diagram diagram( String name, Figure figure )
      {
          return new Diagram( requireNonNull( name, "name" ), FigureBuilder.root( requireNonNull( figure, "figure" ) ) );
      }
docs: Factory methods for constructing diagrams directly