code: public static String orderByAnnotation(PackageImportAdder adder, OrderByGetter... orderByGetters) {
          Assert.notNull(adder);
  
          if (orderByGetters == null) {
              return null;
          }
  
          // we look for the first non empty conf.
          for (OrderByGetter getter : orderByGetters) {
              if (getter != null) {
                  if (getter.getOrderBy() != null && !getter.getOrderBy().isEmpty()) {
                      adder.addImport("javax.persistence.OrderBy");
                      AttributeBuilder ab = new AttributeBuilder();
                      ab.addString(getter.getOrderBy());
                      return ab.bindAttributesTo("@OrderBy");
                  }
              }
          }
  
          return null;
      }
docs: ------------------------------------------