code: public List<LicenseTemplate> getAllLicenseTemplates() throws GitLabApiException {
          Response response = get(Response.Status.OK, null, "licenses");
          return (response.readEntity(new GenericType<List<LicenseTemplate>>() {}));
      }
docs: Get all license templates.
  
  GET /licenses
  
  @return a list of LicenseTemplate instances
  @throws GitLabApiException if any exception occurs