private static MavenPlugin convertPlugin(Plugin plugin) {
    List<MavenPlugin.Execution> executions = new ArrayList<>(plugin.getExecutions().size());
    for (PluginExecution each : plugin.getExecutions()) {
      executions.add(convertExecution(each));
    }

    List<MavenId> deps = new ArrayList<>(plugin.getDependencies().size());
    for (Dependency each : plugin.getDependencies()) {
      deps.add(new MavenId(each.getGroupId(), each.getArtifactId(), each.getVersion()));
    }

    return new MavenPlugin(plugin.getGroupId(),
                           plugin.getArtifactId(),
                           plugin.getVersion(),
                           false,
                           "true".equals(plugin.getExtensions()),
                           convertConfiguration(plugin.getConfiguration()),
                           executions, deps);
  }
private static MavenPlugin convertPlugin(Plugin plugin)