private static @NotNull LocalQuickFix toLocalQuickFix(IntentionAction fix) {
    ModCommandAction action = fix.asModCommandAction();
    return action == null ? new LocalQuickFixBackedByIntentionAction(fix) :
           LocalQuickFix.from(action);
  }
private static @NotNull LocalQuickFix toLocalQuickFix(IntentionAction fix)