code: private void addByType(final ApiAttribute apiParent, final String string) {
          for (final ApiAttribute object : apiParent.getAttributes()) {
              if (object.isType(string)) {
                  final ApiModelToGedObjectVisitor visitor = createVisitor();
                  object.accept(visitor);
              }
          }
      }
docs: Add the attributes if they match the given type.
  
  @param apiParent the parent attribute
  @param string the type we want to match