public static boolean processPluginsInPluginManagement(@NotNull MavenDomProjectModel projectDom,
                                                         @NotNull final Processor<? super MavenDomPlugin> processor,
                                                         @NotNull final Project project) {

    Processor<MavenDomPlugins> managedPluginsListProcessor = plugins -> {
      for (MavenDomPlugin domPlugin : plugins.getPlugins()) {
        if (processor.process(domPlugin)) return true;
      }
      return false;
    };

    Function<MavenDomProjectModelBase, MavenDomPlugins> domFunction =
      mavenDomProfile -> mavenDomProfile.getBuild().getPluginManagement().getPlugins();

    return process(projectDom, managedPluginsListProcessor, project, domFunction, domFunction);
  }
public static boolean processPluginsInPluginManagement(@NotNull MavenDomProjectModel projectDom,
                                                         @NotNull final Processor<? super MavenDomPlugin> processor,
                                                         @NotNull final Project project)