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