@Contract("null, _ -> null")
  public static LocalQuickFix wrapToQuickFix(@Nullable IntentionAction action, @NotNull PsiFile file) {
    if (action == null) return null;
    if (action instanceof LocalQuickFix) return (LocalQuickFix)action;
    ModCommandAction modCommandAction = action.asModCommandAction();
    if (modCommandAction != null) {
      return LocalQuickFix.from(modCommandAction);
    }
    return new IntentionWrapper(action);
  }
@Contract("null, _ -> null")
  public static LocalQuickFix wrapToQuickFix(@Nullable IntentionAction action, @NotNull PsiFile file)