private void addMessageWithoutLocation(String message, boolean error) {
    collector.add(new GroovyCompilerMessage(error ? GroovyCompilerMessageCategories.ERROR : GroovyCompilerMessageCategories.WARNING, message, null, -1, -1));
  }
private void addMessageWithoutLocation(String message, boolean error)