boolean (@NotNull ExternalSystemExecuteTaskTask taskTask) { var project = taskTask.getIdeProject(); var modulePath = taskTask.getExternalProjectPath(); var commandLine = GradleCommandLineUtil.parseCommandLine(taskTask.getTasksToExecute(), taskTask.getArguments()); var indices = GradleTasksIndices.getInstance(project); for (var task : commandLine.getTasks()) { if (!GradleCommandLineUtil.getTestPatterns(task).isEmpty()) { return true; } var taskData = indices.findTasks(modulePath, task.getName()); for (var taskDatum : taskData) { if (taskDatum.isTest()) { return true; } } } return false; }