private boolean detectIsParallelizable(TaskInternal task) { if (task.getClass().isAnnotationPresent(ParallelizableTask.class)) { if (task.isHasCustomActions()) { LOGGER.info("Unable to parallelize task {} due to presence of custom actions (e.g. doFirst()/doLast())", task.getPath()); } else { return true; } } return false; }