BuildStatusFacet facet = project.getFacet(BuildStatusFacet.class);
if (!facet.isBuildable())
{
UIOutput output = uiContext.getProvider().getOutput();
PrintStream err = output.err();
output.error(err, String.format("Project '%s' has errors", project.getRoot()));
for (LogRecord record : facet.getBuildMessages())
{
if (Level.SEVERE.equals(record.getLevel()))
{
output.error(err, record.getMessage());