void (@NotNull Project project, @NotNull Set<Task> tasks) { ProjectIdentifier projectIdentifier = GradleProjectUtil.getProjectIdentifier(project); Set<Task> previousTasks = allTasks.put(projectIdentifier, tasks); if (previousTasks != null) { context.getMessageReporter().createMessage() .withGroup(Messages.TASK_CACHE_SET_GROUP) .withTitle("Task model redefinition") .withText("Tasks for " + GradleNegotiationUtil.getProjectDisplayName(project) + " was already collected.") .withStackTrace() .withKind(Message.Kind.ERROR) .reportMessage(project); } }