DroolsError[] buildErrors) {
// TODO are there warnings too?
for (int i = 0; i < buildErrors.length; i++ ) {
DroolsError error = buildErrors[i];
if (error instanceof GlobalError) {
GlobalError globalError = (GlobalError) error;
markers.add(new DroolsBuildMarker("Global error: " + globalError.getGlobal(), -1));
} else if (error instanceof RuleBuildError) {
RuleBuildError ruleError = (RuleBuildError) error;
// TODO try to retrieve line number (or even character start-end)
// disabled for now because line number are those of the rule class,
// not the rule file itself