void (@NotNull Project project) { StartParameter startParameter = project.getGradle().getStartParameter(); List<String> taskNames = startParameter.getTaskNames(); if (taskNames.isEmpty()) { startParameter.setTaskNames(null); List<String> helpTask = Collections.singletonList("help"); project.setDefaultTasks(helpTask); startParameter.setExcludedTaskNames(helpTask); } }