public static void addBuilderHelperPaths(@NotNull MavenPlugin plugin, @NotNull String goal, @NotNull Consumer<String> addFolder) {
    for (MavenPlugin.Execution execution : plugin.getExecutions()) {
      if (execution.getGoals().contains(goal)) {
        final Element configurationElement = execution.getConfigurationElement();
        if (configurationElement != null) {
          final Element sourcesElement = configurationElement.getChild("sources");
          if (sourcesElement != null) {
            for (Element element : sourcesElement.getChildren()) {
              addFolder.accept(element.getTextTrim());
            }
          }
        }
      }
    }
  }
public static void addBuilderHelperPaths(@NotNull MavenPlugin plugin, @NotNull String goal, @NotNull Consumer<String> addFolder)