void (@NotNull Project project, @NotNull DefaultGradleSourceSetModel sourceSetModel) { ProjectIdentifier projectIdentifier = GradleProjectUtil.getProjectIdentifier(project); DefaultGradleSourceSetModel previousSourceSetModel = allSourceSetModels.put(projectIdentifier, sourceSetModel); if (previousSourceSetModel != null) { context.getMessageReporter().createMessage() .withGroup(Messages.SOURCE_SET_CACHE_SET_GROUP) .withTitle("Source set model redefinition") .withText("Source sets for " + GradleNegotiationUtil.getProjectDisplayName(project) + " was already collected.") .withStackTrace() .withKind(Message.Kind.ERROR) .reportMessage(project); } }