code: protected void addDefaultPlugins(
              final DocWorkUnit currentWorkUnit,
              final List<? extends CommandLinePluginDescriptor<?>> pluginDescriptors)
      {
          for (final CommandLinePluginDescriptor<?> descriptor :  pluginDescriptors) {
              final String descriptorName = descriptor.getDisplayName();  // key/name at the root of the freemarker map
              final HashSet<HashMap<String, Object>> defaultsForPlugins = new HashSet<>();
              currentWorkUnit.setProperty(descriptorName, defaultsForPlugins);
  
              for (final Object plugin : descriptor.getDefaultInstances()) {
                  final HashMap<String, Object> pluginDetails = new HashMap<>();
                  pluginDetails.put("name", plugin.getClass().getSimpleName());
                  pluginDetails.put("filename", DocletUtils.phpFilenameForClass(plugin.getClass(), getDoclet().getOutputFileExtension()));
                  defaultsForPlugins.add(pluginDetails);
              }
          }
      }
docs: reference.