PsiElement (@NotNull PsiSwitchBlock switchBlock) { PsiCodeBlock body = switchBlock.getBody(); if (body == null) return null; return ContainerUtil.find(body.getStatements(), stmt -> stmt instanceof PsiSwitchLabelStatementBase label && SwitchUtils.isUnconditionalLabel(label)); }