void (@NotNull PsiExpression qualifier, @NotNull List<? super @NotNull LocalQuickFix> fixes) { if (!HighlightingFeature.PATTERNS_IN_SWITCH.isAvailable(qualifier)) return; PsiElement parent = PsiUtil.skipParenthesizedExprUp(qualifier.getParent()); if (parent instanceof PsiSwitchBlock block && PsiUtil.skipParenthesizedExprDown(block.getExpression()) == qualifier) { fixes.add(LocalQuickFix.from(new CreateNullBranchFix(block))); } }