UnaryOperator<String> (Module module, MavenProject mavenProject, JavaParameters javaParameters) { MavenDomProjectModel domModel = MavenDomUtil.getMavenDomProjectModel(module.getProject(), mavenProject.getFile()); if (domModel == null) { return s -> s; } var staticProperties = MavenPropertyResolver.collectPropertyMapFromDOM(mavenProject, domModel); Properties modelProperties = mavenProject.getProperties(); String jaCoCoConfigProperty = getJaCoCoArgLineProperty(mavenProject); ParametersList vmParameters = javaParameters.getVMParametersList(); return name -> { String vmPropertyValue = vmParameters.getPropertyValue(name); if (vmPropertyValue != null) { return vmPropertyValue; } String staticPropertyValue = staticProperties.get(name); if (staticPropertyValue != null) { return MavenPropertyResolver.resolve(staticPropertyValue, domModel); } String modelPropertyValue = modelProperties.getProperty(name); if (modelPropertyValue != null) { return modelPropertyValue; } if (name.equals(jaCoCoConfigProperty)) { return ""; } return null; }; }