docs: private void validatePlugin(final Features f) {
          final String id = f.getPluginId();
          if (!ID_PATTERN.matcher(id).matches()) {
              final String msg = "Plug-in ID '" + id + "' doesn't follow syntax rules.";
              throw new IllegalArgumentException(msg);
          }
          final List<String> version = f.getFeature("package.version");
          if (version != null && !version.isEmpty() && !VERSION_PATTERN.matcher(version.get(0)).matches()) {
              final String msg = "Plug-in version '" + version.get(0) + "' doesn't follow syntax rules.";
              throw new IllegalArgumentException(msg);
          }
      }