code: private void init(final List<DbLicense> licenses) {
          licensesRegexp.clear();
  
          for (final DbLicense license : licenses) {
              if (license.getRegexp() == null ||
                      license.getRegexp().isEmpty()) {
                  licensesRegexp.put(license.getName(), license);
              } else {
                  licensesRegexp.put(license.getRegexp(), license);
              }
          }
      }
docs: Init the licenses cache
  
  @param licenses