@Override
  public void enhanceTaskProcessing(@Nullable Project project,
                                    @NotNull List<String> taskNames,
                                    @NotNull Consumer<String> initScriptConsumer,
                                    @NotNull Map<String, String> parameters) {

    var isRunAsTest = Boolean.parseBoolean(parameters.get(IS_RUN_AS_TEST_KEY));
    var isBuiltInTestEventsUsed = Boolean.parseBoolean(parameters.get(IS_BUILT_IN_TEST_EVENTS_USED_KEY));
    var jvmParametersSetup = parameters.get(JVM_PARAMETERS_SETUP_KEY);
    if (isRunAsTest) {
      var initScript = isBuiltInTestEventsUsed
                       ? GradleInitScriptUtil.loadFileComparisonTestLoggerInitScript()
                       : GradleInitScriptUtil.loadIjTestLoggerInitScript();
      initScriptConsumer.consume(initScript);
    }
    enhanceTaskProcessing(taskNames, jvmParametersSetup, initScriptConsumer);
  }
@Override
  public void enhanceTaskProcessing(@Nullable Project project,
                                    @NotNull List<String> taskNames,
                                    @NotNull Consumer<String> initScriptConsumer,
                                    @NotNull Map<String, String> parameters)