private static <T> boolean processProfile(MavenDomProfile profileDom,
                                            Processor<? super T> processor,
                                            Function<? super MavenDomProfile, ? extends T> f) {
    T t = f.fun(profileDom);
    return t != null && processor.process(t);
  }
private static <T> boolean processProfile(MavenDomProfile profileDom,
                                            Processor<? super T> processor,
                                            Function<? super MavenDomProfile, ? extends T> f)