void (final String sessionDataFilePath, final String[] patterns, final String[] excludePatterns, final SimpleJavaParameters javaParameters, final boolean testTracking, final boolean branchCoverage, @Nullable String sourceMapPath, @Nullable final Project project) { final String agentPath = getAgentPath(); if (agentPath == null) return; final String[] excludeAnnotations = getExcludeAnnotations(project); List<Function<? super TargetEnvironmentRequest, ? extends JavaTargetParameter>> targetParameters = javaParameters.getTargetDependentParameters().asTargetParameters(); targetParameters.add(request -> createArgumentTargetParameter(agentPath, sessionDataFilePath, patterns, excludePatterns, excludeAnnotations, testTracking, branchCoverage, sourceMapPath)); if (!Registry.is("idea.coverage.new.tracing.enabled")) { targetParameters.add(request -> JavaTargetParameter.fixed("-Didea.new.tracing.coverage=false")); } if (branchCoverage && testTracking && !Registry.is("idea.coverage.new.test.tracking.enabled")) { targetParameters.add(request -> JavaTargetParameter.fixed("-Didea.new.test.tracking.coverage=false")); } }