Set<Task> (@NotNull Project project) { ProjectIdentifier projectIdentifier = GradleProjectUtil.getProjectIdentifier(project); Set<Task> projectTasks = allTasks.get(projectIdentifier); if (projectTasks == null) { context.getMessageReporter().createMessage() .withGroup(Messages.TASK_CACHE_GET_GROUP) .withTitle("Task model aren't found") .withText( "Tasks for " + GradleNegotiationUtil.getProjectDisplayName(project) + " wasn't collected. " + "All tasks should be collected during " + GradleModelFetchPhase.TASK_WARM_UP_PHASE + "." ) .withStackTrace() .withKind(Message.Kind.ERROR) .reportMessage(project); return Collections.emptySet(); } return projectTasks; }