public void registerFix(@NotNull IntentionAction fix,@Nullable TextRange range,@Nullable final HighlightDisplayKey key){
  if (range == null) {
    range=new TextRange(myStartOffset,myEndOffset);
  }
  if (myQuickFixes == null) {
    myQuickFixes=new ArrayList<QuickFixInfo>();
  }
  myQuickFixes.add(new QuickFixInfo(fix,range,key));
}

public void registerFix ( @ NotNull IntentionAction fix , @ Nullable TextRange range , @ Nullable final HighlightDisplayKey key ) { if ( range == null ) { range = new TextRange ( myStartOffset , myEndOffset ) ; } if ( myQuickFixes == null ) { myQuickFixes = new ArrayList < QuickFixInfo > ( ) ; } myQuickFixes . add ( new QuickFixInfo ( fix , range , key ) ) ; }
registers a quick fix for the annotation which is only available on a particular range of text within the annotation .
