private void addErrorMessage(SyntaxException exception) {
    String message = exception.getMessage();
    String justMessage = message.substring(0, message.lastIndexOf(LINE_AT));
    collector.add(new GroovyCompilerMessage(
      GroovyCompilerMessageCategories.ERROR, justMessage,
      exception.getSourceLocator(), exception.getLine(), exception.getStartColumn()
    ));
  }
private void addErrorMessage(SyntaxException exception)