public <T extends IntentionAction & LocalQuickFix>void registerBatchFix(@NotNull T fix,@Nullable TextRange range,@Nullable final HighlightDisplayKey key){
  if (range == null) {
    range=new TextRange(myStartOffset,myEndOffset);
  }
  if (myBatchFixes == null) {
    myBatchFixes=new ArrayList<QuickFixInfo>();
  }
  myBatchFixes.add(new QuickFixInfo(fix,range,key));
}

public < T extends IntentionAction & LocalQuickFix > void registerBatchFix ( @ NotNull T fix , @ Nullable TextRange range , @ Nullable final HighlightDisplayKey key ) { if ( range == null ) { range = new TextRange ( myStartOffset , myEndOffset ) ; } if ( myBatchFixes == null ) { myBatchFixes = new ArrayList < QuickFixInfo > ( ) ; } myBatchFixes . add ( new QuickFixInfo ( fix , range , key ) ) ; }
registers a quickfix which would be available during batch mode only , in particular during com . intellij . codeinspection . defaulthighlightvisitorbasedinspection run
