code: public IRenderingElement generateBond(IBond bond, RendererModel model) {
          boolean showExplicitHydrogens = true;
          if (model.hasParameter(BasicAtomGenerator.ShowExplicitHydrogens.class)) {
              showExplicitHydrogens = model.getParameter(BasicAtomGenerator.ShowExplicitHydrogens.class).getValue();
          }
  
          if (!showExplicitHydrogens && bindsHydrogen(bond)) {
              return null;
          }
  
          if (isStereoBond(bond)) {
              return generateStereoElement(bond, model);
          } else {
              return generateBondElement(bond, model);
          }
      }
docs: Generate stereo or bond elements for this bond.
  
  @param bond the bond to use when generating elements
  @param model the renderer model
  @return one or more rendering elements