public static Map<String, String> collectPropertyMapFromDOM(@Nullable MavenProject project, MavenDomProjectModel projectDom) {
    var result = new HashMap<String, String>();

    collectPropertyMapFromDOM(ReadAction.compute(()->projectDom.getProperties()), result);

    if (project != null) {
      collectPropertiesForActivatedProfiles(project, projectDom, result);
    }
    return result;
  }
public static Map<String, String> collectPropertyMapFromDOM(@Nullable MavenProject project, MavenDomProjectModel projectDom)