boolean (@Nullable PsiCaseLabelElement labelElement, @NotNull PsiCaseLabelElementList labelElementList) { return labelElement != null && PsiTreeUtil.isAncestor(labelElementList, labelElement, true); }