void (@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(GradleProjectResolverExtension.JVM_PARAMETERS_SETUP_KEY); if (isRunAsTest) { var initScript = isBuiltInTestEventsUsed ? GradleInitScriptUtil.loadFileComparisonTestLoggerInitScript() : GradleInitScriptUtil.loadIjTestLoggerInitScript(); initScriptConsumer.consume(initScript); } enhanceTaskProcessing(taskNames, jvmParametersSetup, initScriptConsumer); }