public String apply(@Nonnull ComponentDto input) {
return input.key();
}
});
ValidateProjectsVisitor visitor = new ValidateProjectsVisitor(session, dbClient.componentDao(), settings.getBoolean(CoreProperties.CORE_PREVENT_AUTOMATIC_PROJECT_CREATION), modulesByKey);
<BUG>visitor.visit(context.getRoot());
</BUG>
if (!visitor.validationMessages.isEmpty()) {
throw new IllegalArgumentException("Validation of project failed:\n  o " + MESSAGES_JOINER.join(visitor.validationMessages));
}

public String apply(@Nonnull ComponentDto input) {
return input.key();
}
});
ValidateProjectsVisitor visitor = new ValidateProjectsVisitor(session, dbClient.componentDao(), settings.getBoolean(CoreProperties.CORE_PREVENT_AUTOMATIC_PROJECT_CREATION), modulesByKey);
visitor.visit(treeRootHolder.getRoot());
if (!visitor.validationMessages.isEmpty()) {
throw new IllegalArgumentException("Validation of project failed:\n  o " + MESSAGES_JOINER.join(visitor.validationMessages));
}
