void (@NotNull MavenProject project, MavenDomProjectModel projectDom, Map<String, String> result) { Collection<String> activeProfiles = project.getActivatedProfilesIds().getEnabledProfiles(); for (MavenDomProfile each : projectDom.getProfiles().getProfiles()) { XmlTag idTag = each.getId().getXmlTag(); if (idTag == null || !activeProfiles.contains(idTag.getValue().getTrimmedText())) continue; collectPropertyMapFromDOM(each.getProperties(), result); } }