boolean (@NotNull List<? extends PsiCaseLabelElement> labelElements, boolean selectorIsTypeOrClass) { if (selectorIsTypeOrClass) return true; return ContainerUtil.exists(labelElements, st -> st instanceof PsiPattern || isNullType(st)); }