void (@NotNull RunConfigurationBase<?> configuration, @NotNull JavaParameters params, JavaCoverageEnabledConfiguration coverageConfig) { JavaParameters coverageParams = new JavaParameters(); coverageConfig.appendCoverageArgument(configuration, coverageParams); boolean runsUnderNonLocalTarget = configuration instanceof TargetEnvironmentAwareRunProfile && ((TargetEnvironmentAwareRunProfile)configuration).needPrepareTarget(); if (!runsUnderNonLocalTarget) { params.getVMParametersList().addAll(coverageParams.getTargetDependentParameters().toLocalParameters()); myTargetDependentParameters = null; } else { coverageParams.getTargetDependentParameters().asTargetParameters().forEach(params.getTargetDependentParameters().asTargetParameters()::add); myTargetDependentParameters = params.getTargetDependentParameters(); } }