boolean (@NotNull GradleCommandLine commandLine) { for (var task : commandLine.getTasks()) { if (ContainerUtil.exists(task.getOptions(), it -> !GradleCommandLineUtil.isTestPattern(it))) { return true; } } return false; }