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