docs: public Label getLabelByName(String name) {
          for (Label label : labels) {
              if (name.equals(label.getName())) {
                  return label;
              }
          }
          return null;
      }