TextRange problemRange = TextRange.create(offset, offset + width);
String message = "Dialyzer: " + problem.myDescription;
Annotation annotation = holder.createWarningAnnotation(problemRange, message);
HighlightDisplayKey key = HighlightDisplayKey.find(ErlangDialyzerInspection.INSPECTION_SHORT_NAME);
annotation.registerFix(new DisableInspectionToolAction(key) {
@NotNull
@Override
public String getName() {
return "Disable 'Dialyzer-based inspections'";
}