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)) {
annotation.registerFix(intentionAction);
annotation.setNeedsUpdateOnTyping(true);
}
}
}