final JsLintValidatorComponent validator = application.getComponent(JsLintValidatorComponent.class);
try {
final Object[] errorBeans = runner.validateScriptString(text, validator.getJsLintOptions());
int currentLine = 1;
int currentOffset = 0;
ErrorBeanWrapper errorBean = new ErrorBeanWrapper();
for (final Object error : errorBeans) {
if(error != null){
errorBean.setError((NativeObject) error);
if (errorBean.getLine() != 0) {
final int line = errorBean.getLine();
while (currentLine < line) {
currentOffset = text.indexOf("\n", currentOffset) + 1;
currentLine++;
}
final ErrorProcessor processor = errorBean.getProcessor();
final Annotation annotation = annotationHolder.createWarningAnnotation(
processor.getSelectionRange(text, currentOffset, errorBean),
processor.getMessage(errorBean));
for (IntentionAction intentionAction : processor.getFixes(errorBean)) {