LocalQuickFix (@Nullable IntentionAction action, @NotNull PsiFile file) { if (action == null) return null; if (action instanceof LocalQuickFix) return (LocalQuickFix)action; return new IntentionWrapper(action); }