private static boolean hasUnrecognizedOptions(@NotNull GradleCommandLine commandLine) {
    for (var task : commandLine.getTasks()) {
      if (task.getName().startsWith("-")) {
        return true;
      }
    }
    return false;
  }
private static boolean hasUnrecognizedOptions(@NotNull GradleCommandLine commandLine)